Skip to content

Instantly share code, notes, and snippets.

✏️
writing a github status

Nicolas Perriault n1k0

✏️
writing a github status
Block or report user

Report or block n1k0

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@n1k0
n1k0 / app.js
Created May 22, 2019
head hunter email generator
View app.js
var villes = [
"Agen",
"Ajaccio",
"Albertville",
"Albi",
"Alençon",
"Alès",
"Amiens",
"Angers",
"Angoulême",
View .gitconfig
[alias]
caca = commit -a -C HEAD --amend
changelog = "!f() { r=${1:-`git describe --tags --abbrev=0`..HEAD}; echo Changelog for $r; git log --reverse --no-merges --format='* %s' $r; }; f"
changes = diff --name-status
ci = commit
cia = commit --amend
ciaa = commit -a --amend
co = checkout
cp = cherry-pick
dic = diff --cached
View .gitconfig
[alias]
caca = commit -a -C HEAD --amend
changelog = "!f() { r=${1:-`git describe --tags --abbrev=0`..HEAD}; echo Changelog for $r; git log --reverse --no-merges --format='* %s' $r; }; f"
changes = diff --name-status
ci = commit
cia = commit --amend
ciaa = commit -a --amend
co = checkout
cp = cherry-pick
dic = diff --cached
@n1k0
n1k0 / copy-to-clipboard.html
Last active Jul 9, 2018
Copy to clipboard for Chrome and Firefox
View copy-to-clipboard.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>copy to clipboard for chrome and firefox</title>
</head>
<body>
<button>copy</button>
<script>
function toClipoard(text) {
View demo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am n1k0 on github.
  • I am n1k0 (https://keybase.io/n1k0) on keybase.
  • I have a public key ASBAtEJcRmxSj6XhdF7cyySIwHNXU--pLHpr6bkdytaQtAo

To claim this, I am signing this object:

@n1k0
n1k0 / Main.elm
Created Dec 14, 2016
Default Elm app
View Main.elm
module Main exposing (..)
import Html exposing (..)
main : Program Never Model Msg
main =
Html.program
{ init = createModel
, view = view
@n1k0
n1k0 / batch.js
Last active Sep 1, 2016
Quick kinto-http batch sample data creation script
View batch.js
var opts = {headers: {Authorization: "Basic " + require("btoa")("test:test")}};
var c = new (require("kinto-http"))("http://0.0.0.0:8888/v1", opts);
var schema = {"type": "object", "properties": {"n": {"type": "number"}}};
var displayFields = ["n"];
c.createBucket("buck")
.then(() => c.bucket("buck").createCollection("coll", {
data: {schema, displayFields}
}))
.then(() => {
@n1k0
n1k0 / series.md
Last active Aug 14, 2018 — forked from twidi/series.md
series a voir
View series.md
Title Seen Rating ★☆
24 ★★☆☆☆
Ash vs Evil Dead ?
Bates Motel ★★★☆☆
Battlestar Galactica ?
Better Call Saul ★★★★★
Black Mirror ★★★★★
Black Sails ?
Breaking Bad ★★★★★
@n1k0
n1k0 / index.html
Created Jan 18, 2016
Firefox service worker bug with ZERO WIDTH JOINER char (0x200D)
View index.html
<!DOCTYPE html>
<html><meta charset="utf-8"></head>
<body>
<script>
window.navigator.serviceWorker.register("worker.js", {scope: "/"})
.then(reg => console.log("registered", reg))
.catch(err => console.error("service worker error", err))
</script>
</body>
</html>
You can’t perform that action at this time.