Skip to content

Instantly share code, notes, and snippets.

@iManu
iManu / HTML5-basic
Last active August 29, 2015 14:06
HTML: basic template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Simple HTML5</title>
</head>
<body>
</body>
</html>
@iManu
iManu / _inline-block.scss
Last active August 29, 2015 14:06 — forked from jlong/_inline-block.scss
SCSS: inline-block
/*
Inline-block for IE6, Firefox 2, and up
via http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block
*/
@module inbl {
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
@iManu
iManu / nodejs
Created September 18, 2014 07:18
downgrade nodejs
$ npm install -g n # Install n globally
$ n latest # Install latest version of node
$ n ls # List all versions available
$ n 0.10.28 # Install and switch to an earlier version
@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,
@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 / transitionEnd
Created January 13, 2015 10:57
js:transitionEnd
$(".element").on('transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd',
function() {
mafonction ()
});
var $ = document.querySelectorAll.bind(document);
var $_ = document.querySelector.bind(document);
@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 () {
@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 / 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