Skip to content

Instantly share code, notes, and snippets.

View llaine's full-sized avatar
🚀

Louis Lainé llaine

🚀
View GitHub Profile
$ app/client : tree . | more
|-- account
| | -- password
| | | |-- recover
| | | | | -- recover.html
| | | | | -- recover.js
| | | | | -- recover.less
| | | | | -- utils
| | | | | | -- helper.js
@llaine
llaine / bad-tree.sh
Last active August 29, 2015 14:24
medium.com article pieces of code.
$ app/client : tree . | more
|-- account
| | -- html
| | | -- recoverPwd.html
| | | -- updateProfile.html
| | | -- account.html
| | -- js
| | | -- recoverPassword.js
| | | -- profileInfos.js
@llaine
llaine / deploy.sh
Created June 13, 2015 17:55
Meteor deploy script
#!/bin/bash
# Global var
readonly APACHE_DIR="/home/nicetomateyou"
readonly SERVER_DIR="$APACHE_DIR/bundle/programs/server"
readonly ARGC="$#"
readonly VERSION="$1"
readonly TARGET="prod"
@llaine
llaine / index.html
Created May 19, 2015 12:22
Matrix animation
<canvas id="c"></canvas>
@llaine
llaine / elastic.sh
Last active November 27, 2015 17:02
Elasticsearch french fake index creation for mock and test
# Index creation with settings
curl -XPUT localhost:9200/geoloc -d '{
"settings": {
"index": {
"analysis": {
"filter": {
"french_elision": {
"type": "elision",
"articles": [ "l", "m", "t", "qu", "n", "s",
"j", "d", "c", "jusqu", "quoiqu",
@llaine
llaine / example.html
Created February 8, 2015 16:46
Drawing + canvas + easter egg
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
<script src="konami.js"></script>
@llaine
llaine / client.js
Created October 15, 2014 19:01
WebSocket with NodeJS
var WebSocketClient = require('websocket').client;
var sys = require("sys");
var stdin = process.openStdin();
var client = new WebSocketClient();
client.on('connectFailed', function(error) {
console.log('Connect Error: ' + error.toString());
});
var Konami = function(t) {
var e = {
addEvent: function(t, e, n, i) {
t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent && (t["e" + e + n] = n, t[e + n] = function() {
t["e" + e + n](window.event, i)
}, t.attachEvent("on" + e, t[e + n]))
},
input: "",
pattern: "38384040373937396665",
load: function(t) {
@llaine
llaine / translate.html
Created August 25, 2014 08:25
Meteor translate module
<template name="helloWorld">
{{ translate 'HELLO' }}
</template>
METEOR CORE:
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release