Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import mathPython syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| /* | |
| This snippet requires PIXI and underscoreJS to work; | |
| The good thing about this approach is that you don't have to manually set the number of total frames | |
| used and file name references used in the animation to build up your texture data; and this technique | |
| also makes it a lot easier to remove the BaseTextures from TextureCache once you no longer need them, | |
| so that you can free up precious memory! | |
| Use this snippet with caution, I quickly scribbled it in, so not sure if it breaks, please let me know | |
| in the comments if you found it useful or found an error. Cheers! | |
| // Inspired in: | |
| // https://css-tricks.com/snippets/css/cross-browser-opacity/ | |
| // http://zerosixthree.se/8-sass-mixins-you-must-have-in-your-toolbox/ | |
| // Usage: `@include hardOpacity(1);`, `@include hardOpacity(.5);` | |
| @mixin hardOpacity($valueOpacity) { | |
| $unitOp: unit($valueOpacity); | |
| $valOp: parseInt($valueOpacity); |
| img { | |
| /* Preventing draggable images or selection on every image. Use at your own risk. */ | |
| -webkit-user-select:none; | |
| -webkit-touch-callout:none; /*Safari, safari mobile; iPhone OS*/ | |
| -khtml-user-select: none; | |
| -ms-user-select: none; | |
| -o-user-select: none; | |
| user-select: none; | |
| } |
This is an experiment I'm working on, I want to call it Julia.js.
The only thing thats will cause not working fine on firefox is the -webkit-background-clip: text; thing. Any ideas?
Also I'm planning to add a "save button" via canvas... ;)
Inspired by: Glen Maddern's Pen wxaGg.
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin <branch-name> |
| openssl rsa -in MYFILE.pem -pubout > MYFILE.pub | |
| ssh-keygen -f MYFILE.pub -i -m PKCS8 |