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
{ | |
"metadata" : { | |
"title" : "French Departments INSEE COG Dataset 2011", | |
"date" : "2013-04-21", | |
"version" : "1.0.0" | |
}, | |
"departements" : { | |
"DEP_01" : { | |
"uri" : "DEP_01", | |
"code" : "01", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page calling the iframe</title> | |
<style> body {background-color: black;} </style> | |
</head> | |
<body> | |
Hi, I'm host. |
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
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>#1 Hello world!</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<p>#1 Hello world!</p> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
ls ~ | grep bash | |
ls ~ | grep bash | wc -l | |
history | |
dig +short myip.opendns.com @resolver1.opendns.com | |
curl -s ip.appspot.com | |
curl -s ip.appspot.com | xargs -n 1 curl -s "freegeoip.net/csv/$1" | cut -d ',' -f '9 10' | sed 's/,/\&lon=/g' | xargs -n 1 echo "http://api.openweathermap.org/data/2.5/weather?mode=html&lat=$1" | sed 's/ //g' | xargs -n 1 curl -s $1 | lynx -stdin -dump | |
ps aux | |
[ $[ $RANDOM % 6 ] == 0 ] && echo "You die" || echo "You live" |
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
/***************** hello-es6.js *****************/ | |
console.log('HELLO ES6'); | |
/***************** template-strings.js *****************/ | |
const name = process.argv[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
if (navigator.userAgent.indeOf('Apple-iPhone/') !== -1) ga('send', 'dimension', 'MobileDeviceModel', 'iPhone'); | |
if (navigator.userAgent.indeOf('Apple-iPhone1C2/') !== -1) ga('send', 'dimension', 'MobileDeviceModel', 'iPhone 3G'); | |
if (navigator.userAgent.indeOf('Apple-iPhone2C1/') !== -1) ga('send', 'dimension', 'MobileDeviceModel', 'iPhone 3GS'); | |
if (navigator.userAgent.indeOf('Apple-iPhone3C1/') !== -1) ga('send', 'dimension', 'MobileDeviceModel', 'iPhone 4'); | |
if (navigator.userAgent.indeOf('Apple-iPhone3C2/') !== -1) ga('send', 'dimension', 'MobileDeviceModel', 'iPhone 4'); | |
if (navigator.userAgent.indeOf('Apple-iPhone3C3/') !== -1) ga('send', 'dimension', 'MobileDeviceModel', 'iPhone 4'); | |
if (navigator.userAgent.indeOf('Apple-iPhone4C1/') !== -1) ga('send', 'dimension', 'MobileDeviceModel', 'iPhone 4S'); | |
if (navigator.userAgent.indeOf('Apple-iPhone5C1/') !== -1) ga('send', 'dimension', 'MobileDeviceModel', 'iPhone 5'); | |
if (navigator.userAgent.indeOf('Apple-iPhone5C2/') !== -1) ga('send', 'dimension', 'Mobil |
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
'use strict'; | |
require('mocha-generators').install(); | |
var expect = require('chai').expect; | |
var nightmare = require('nightmare'); | |
describe('Test blog content', function() { | |
this.timeout(10000); |
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
import keyMirror from 'keymirror'; | |
export default keyMirror({ | |
LOAD_DATASETS_START: null, | |
LOAD_DATASETS_SUCCESS: null, | |
LOAD_DATASETS_ERROR: null, | |
LOAD_DATASETS_NOT_FOUND: null, | |
LOAD_DATA_START: null, | |
LOAD_DATA_SUCCESS: null, |
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
/* | |
* This little snippet is to be copied and pasted in Chrome's DevTools Console. | |
* It will make a CSV-like list of all the links on a page, formatting their text label nicely if it can. | |
*/ | |
$('a').map((i, a) => `${a.href},${a.textContent.replace(/\n/g, '').replace(/\s\s+/g, ' ').trim()}`).toArray().join('\n') |