Skip to content

Instantly share code, notes, and snippets.

https://en.wikipedia.org/wiki/Content-control_software
http://www.wired.com/2015/09/content-blocking-apps/
https://adblockplus.org/blog/content-blocking-in-safari-9-and-ios-9-good-news-or-the-death-knell-of-ad-blocking-on-safari
http://techcrunch.com/gallery/everything-you-need-to-know-about-ios-9s-new-content-blockers/
http://www.mondaynote.com/2015/08/31/life-after-content-blocking/
https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewInSafari/Articles/Safari_9.html
http://thenextweb.com/apple/2015/08/27/content-blocking-in-ios-9-is-going-to-screw-up-way-more-than-just-ads/
https://www.hackingwithswift.com/safari-content-blocking-ios9
http://www.imore.com/ios-9-content-blocking-extensions-explained
http://murphyapps.co/blog/2015/6/24/an-hour-with-safari-content-blocker-in-ios-9
[
{
"word": "x men",
"freq": 137
},
{
"word": "uncanni x men",
"freq": 11
},
{
"use strict";
var res = [4,5,6,8,9,10,11,12,15,17]
.reduce(function(acc, el, i){
if(i === 0)
return [[el]];
var lastArray = acc[acc.length - 1];
var lastEl = lastArray[lastArray.length - 1];
"use strict";
process.title = "child 1"
var fs = require('fs')
var writeStream = fs.createWriteStream(undefined, {fd: 3});
console.log('Child 1!', typeof readStream, typeof writeStream);
@DavidBruant
DavidBruant / bla.js
Created July 10, 2015 15:51
Playing with Natural
"use strict";
var natural = require('natural');
var tokenizer = new natural.WordTokenizer();
var stopwordsEn = natural.stopwords;
var stopwordsFr = require('natural/lib/natural/util/stopwords_fr.js').words;
var TokenizerFr = require('natural/lib/natural/tokenizers/aggressive_tokenizer_fr.js');
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2"><graph mode="static" defaultedgetype="directed"><attributes class="node"><attribute id="title" title="title" type="string"/>
<attribute id="nb_expressions" title="nb_expressions" type="integer"/>
<attribute id="base_url" title="base_url" type="string"/>
<attribute id="depth" title="depth" type="integer"/></attributes>
<attributes class="edge"><attribute id="weight" title="weight" type="integer"/></attributes>
<nodes><node id="_www_w3schools_com" label="_www_w3schools_com"><attvalues><attvalue for="title" value="www.w3schools.com"/>
<attvalue for="nb_expressions" value="176"/>
<attvalue for="base_url" value="http://www.w3schools.com"/>
<attvalue for="depth" value="0"/></attvalues></node>

Scratch.js API

var david = new Lutin(url);
david.avancer(20); 
david.orienter(90);
david.dire('on est pas énervés !');


david.quand_touche(autre, function(){
var NB = 30;
var start = performance.now();
var doc;
for(var i = 0 ; i < NB ; i++){
doc = new DOMParser().parseFromString(document.documentElement.outerHTML, "text/html")
}
console.log(performance.now() - start, 'ms')
FROM ubuntu:latest
MAINTAINER David Bruant bruant.d@gmail.com
RUN apt-get update && apt-get install -y \
vim \
zsh \
git \
wget
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>votre superbe page web créée le lun. 26 mai 2014 15:41</title>
<style>
*{
box-sizing: border-box;
}