This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Draw text parallel to a line | |
*/ | |
// Line | |
x1 = x(0) | |
y1 = y(0) | |
x2 = x(25) | |
y2 = y(30) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mkdir & cd | |
function mcd() { | |
mkdir -p "$1" && cd "$1"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:!function(){function e(e,t){var n=document.createElement("script");n.src=e;var o=document.getElementsByTagName("head")[0],i=!1;n.onload=n.onreadystatechange=function(){i||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i=!0,t(),n.onload=n.onreadystatechange=null,o.removeChild(n))},o.appendChild(n)}function t(){n.innerHTML=d,o.appendChild(n),n.style.opacity=1,"undefined"==typeof _?o.removeChild(n):setTimeout(function(){n.style.opacity=0,n.style.transition="4s 3s",n.addEventListener("transitionend",function(){o.removeChild(n)}),n.addEventListener("webkitTransitionEnd",function(){o.removeChild(n)}),i&&(underscore=_.noConflict())},500)}var n=document.createElement("div"),o=document.getElementsByTagName("body")[0],i=!1,d="";return n.style.position="fixed",n.style.height="36px",n.style.width="220px",n.style.marginLeft="-110px",n.style.top="0",n.style.left="50%",n.style.padding="5px 10px",n.style.zIndex=1001,n.style.fontSize="12px",n.style.color="#222",n.style.backgroundColor="#f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page = require('webpage').create() | |
system = require('system') | |
getDate = -> | |
date = new Date() | |
return date.getUTCFullYear() + '-' + | |
('00' + (date.getUTCMonth() + 1)).slice(-2) + '-' + | |
('00' + date.getUTCDate()).slice(-2) + ' ' + | |
('00' + date.getUTCHours()).slice(-2) + ':' + | |
('00' + date.getUTCMinutes()).slice(-2) + ':' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
headings = [] | |
_.each o.groups, (group, label) => | |
headings.push(label) | |
groups = {} | |
_.each o.headings, (heading) => | |
groups[heading] = values: [] | |
_.each headings, (heading, i) => | |
_.each o.groups[Object.keys(o.groups)[i]].values, (val, j) => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="pays"><option value="France">France<option value="Afghanistan">Afghanistan<option value="Afrique_du_Sud">Afrique du Sud<option value="Albanie">Albanie<option value="Algerie">Algérie<option value="Allemagne">Allemagne<option value="Andorre">Andorre<option value="Angola">Angola<option value="Antigua-et-Barbuda">Antigua-et-Barbuda<option value="Arabie_saoudite">Arabie saoudite<option value="Argentine">Argentine<option value="Armenie">Arménie<option value="Australie">Australie<option value="Autriche">Autriche<option value="Azerbaidjan">Azerbaïdjan<option value="Bahamas">Bahamas<option value="Bahrein">Bahreïn<option value="Bangladesh">Bangladesh<option value="Barbade">Barbade<option value="Belau">Belau<option value="Belgique">Belgique<option value="Belize">Belize<option value="Benin">Bénin<option value="Bhoutan">Bhoutan<option value="Bielorussie">Biélorussie<option value="Birmanie">Birmanie<option value="Bolivie">Bolivie<option value="Bosnie-Herzégovine">Bosnie-Herzégovine<option value="Botswana">Bot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select> | |
<option value="AF">Afghanistan | |
<option value="ZA">Afrique du sud | |
<option value="AX">Åland, îles | |
<option value="AL">Albanie | |
<option value="DZ">Algérie | |
<option value="DE">Allemagne | |
<option value="AD">Andorre | |
<option value="AO">Angola | |
<option value="AI">Anguilla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@TODO : | |
- Add italic-bold | |
- Change the .tweet-counter value | |
*/ | |
!function(window, document) { | |
// From http://mothereff.in/twitalics | |
var types = { | |
// `new Number` is needed since we want to add properties to the numbers later (cache) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ npm install node-phantom nodemailer moment lodash | |
// Modules definitions | |
var phantom = require('node-phantom') | |
, nodemailer = require("nodemailer") | |
, moment = require('moment') | |
, _ = require('lodash') | |
// Email stuff | |
var smtpTransport = nodemailer.createTransport("SMTP",{ | |
service: "Gmail" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Show the background image on http://movies.io | |
* http://i.imgur.com/E99gy.jpg => http://i.imgur.com/t1lm7.png | |
* You need to put this at the beginning of the <body> (before every <div>s) | |
* <span>☼</span> | |
*/ | |
body > span:first-of-type { | |
position: absolute; | |
top: 0; |