Miscellaneous

Showing 1 to 4 of 32 posts.

Create a new git repository from command line (curl)

Posted on November 18th, 2019 in Miscellaneous by George

 

Do you find yourself having often to create a new project and also have to create a git repository for it?

Would you rather create the repository on the command line instead of a tedious trip to the GitHub website or locally installed git client? 

Only one line in terminal ...

curl -u 'yourGithubUserNameHere' https://api.github.com/user/repos -d '{"name":"newRepositoryName"}'

Read more...

HTML link phone/mobile number, make it callable

Posted on November 16th, 2019 in Miscellaneous by George

HTML5 includes protocols such as tel: or mailto: for the browser to use. The browsers implement differently the protocols, some will launch the phone app and add the number ready to be used and others directly execute the call if permission is granted.

Read more...

Falling letters tutorial css, javascript

Posted on September 22nd, 2019 in Miscellaneous by George

Vanilla js letters and words falling animation

Read more...

Twig basic syntax, variables, filters and functions

Posted on October 26th, 2018 in Miscellaneous by George

Learn the basic syntax and how to declare variables, use filters and functions with twig. Twig has two delimiters :

If you want to try the code go to TWIG PLAYGROUND and for full reference on functions go to Twig Functions .

For full reference on twig go to Twig Documentation.

 
1. {%        %}  used to execute statements such as for-loops and filters;

2. {{         }} used to print the result of an expression to the templatep;

Read more...

Categories