Skip to content

Instantly share code, notes, and snippets.

@iManu
iManu / SketchSystems.spec
Last active March 5, 2019 07:50
Pockels App Logic
Pockels App Logic
open app -> Add color
Entity
Create
is team? -> Create team
is project? -> Create project
is palette? -> Create palette
is color? -> Add color
Rename
@iManu
iManu / Random-string
Created October 12, 2018 08:38 — forked from 6174/Random-string
Generate a random string in JavaScript In a short and fast way!
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
@iManu
iManu / node-and-npm-in-30-seconds.sh
Created August 22, 2017 08:53 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@iManu
iManu / node-and-npm-in-30-seconds.sh
Created August 22, 2017 08:53 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@iManu
iManu / css_font_face
Created July 26, 2016 15:00
font-face
@font-face {
font-family: FontFamilyName;
font-weight: 200;
font-style: normal;
font-variant: normal;
src: url(../fonts/FontFamilyName_light.eot);
src: url(../fonts/FontFamilyName_light.eot?#stopIE678here) format("embedded-opentype"),
url(../fonts/FontFamilyName_light.woff) format("woff"),
url(../fonts/FontFamilyName_light.ttf) format("truetype")
}
@iManu
iManu / setallremotes
Last active December 21, 2015 10:00
set git backup remotes
## FILE : ~/.bashrc
## Add remotes for backups
#
# first, init bashrc : $ . ~/.bashrc
#
# USE : $ setallremotes projname.git
# THEN : $ git push all master
#
function setallremotes () {
var $ = document.querySelectorAll.bind(document);
var $_ = document.querySelector.bind(document);
@iManu
iManu / transitionEnd
Created January 13, 2015 10:57
js:transitionEnd
$(".element").on('transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd',
function() {
mafonction ()
});
@iManu
iManu / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@iManu
iManu / Preferences.sublime-settings
Last active December 15, 2015 16:25
SublimeText: User preferences
{
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 0,
"caret_style": "blink",
"color_scheme": "Packages/User/SublimeLinter/Tomorrow-Night-Eighties (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"font_size": 12,