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
### Keybase proof | |
I hereby claim: | |
* I am ebrehault on github. | |
* I am ebrehault (https://keybase.io/ebrehault) on keybase. | |
* I have a public key ASARc1t89FHAOqFB18dHFngo2xGnCgecUfU-7XcgQd7aRAo | |
To claim this, I am signing this object: |
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
{ | |
"fieldsets": [ | |
{ | |
"fields": [ | |
"title", | |
"description" | |
], | |
"id": "default", | |
"title": "Default" | |
}, |
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
#!/bin/sh | |
# Redirect output to stderr. | |
exec 1>&2 | |
# enable user input | |
exec < /dev/tty | |
badimport='../core/lib' | |
# CHECK | |
if test $(git diff --cached | grep $badimport | wc -l) != 0 | |
then |
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 { Component, OnInit, ElementRef } from '@angular/core'; | |
import { D3Service, D3, Selection } from 'd3-ng2-service'; | |
@Component({ | |
selector: 'app-content-tree', | |
template: `<svg></svg>`, | |
styleUrls: ['./content-tree.component.css'], | |
}) | |
export class ContentTreeComponent implements OnInit { | |
private d3: D3; |
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
let registry:any = {} | |
function implementing(typeInterface: any) { | |
return (target: any) => { | |
if (target.providesInterfaces === undefined) { | |
target.providesInterfaces = [typeInterface]; | |
} else { | |
target.providesInterfaces.push(typeInterface); | |
} | |
return target; |
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"; | |
define(["module", "app"], function (module, app) { | |
app.lazy.service("localFS", [ | |
"$q", | |
function ($q) { | |
var fstype = LocalFileSystem.PERSISTENT; | |
var path_prefix = "educlever/"; | |
window.requestFileSystem(fstype, 0, function gotFS(fileSystem) { | |
var dataDir = fileSystem.root.getDirectory(path_prefix, {create: true}); |
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
<plominodatabase id="label-demo"> | |
<design> | |
<dbsettings version="1.18"> | |
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription> | |
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription> | |
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments> | |
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex> | |
<IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal> | |
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode> | |
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments> |
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
//============================================================================== | |
// Casper generated Tue Feb 04 2014 16:17:45 GMT+0100 (CET) | |
//============================================================================== | |
var x = require('casper').selectXPath; | |
casper.options.viewportSize = {width: 1855, height: 993}; | |
casper.test.begin('Resurrectio test', function(test) { | |
casper.start('http://en.wikipedia.org/wiki/Main_Page'); | |
casper.waitForSelector(x("//*[contains(text(), \'Welcome\')]"), | |
function success() { |
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
from landez import TilesManager | |
from landez.proj import GoogleProjection | |
from shapely import geometry | |
from PIL import Image | |
import json | |
import os | |
min_color = 20 | |
max_color = 235 | |
grey_limit = 7 |
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
TEST | |
----- | |
// googletesting.js | |
casper.test.begin('Google search retrieves 10 or more results', 5, function suite(test) { | |
casper.start("http://www.google.fr/", function() { | |
test.assertTitle("Google", "google homepage title is the one expected"); | |
test.assertExists('form[action="/yahoo"]', "main form is found"); | |
this.fill('form[action="/search"]', { | |
q: "casperjs" |
NewerOlder