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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#include "Circle.hpp" | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
Circle::Circle(float x, float y, float r, Circle::Color color) { | |
myX = x; | |
myY = y; | |
myR = r; |
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 numpy as np | |
import cv2 | |
from math import * | |
import os | |
databasePath = "db" | |
outputPath = "output" | |
def readImage(imagePath): |
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
Structure de l'appli : | |
-- server.js | |
-- package.json | |
-- public/ | |
---- index.html | |
---- js/ | |
------ app.js | |
---- css/ | |
------ style.css |
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
On Error Resume Next | |
Sheets("Output").Delete | |
Sheets.Add After:=Sheets(Sheets.Count) | |
Set outputSheet = Sheets(Sheets.Count) | |
outputSheet.Name = "Output" 'name it "output" |
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
var http = require('http'); | |
var fs = require('fs'); | |
var runningSockets = 1000; | |
var maxId = 10000000; | |
var filename = 'dump'; | |
if (http.globalAgent.maxSockets < runningSockets) { | |
http.globalAgent.maxSockets = runningSockets; | |
} |
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
#!/usr/bin/env bash | |
cd ../../focus | |
git checkout master | |
git pull | |
gulp build | |
cd ../focus-components | |
git checkout master | |
git pull | |
gulp build | |
cd ../rodolphe-demo/ui |
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
module.exports = React.createClass({ | |
mixins: [cartridgeBehaviour, mixinTrad], | |
displayName: 'tdbEntreprise', | |
cartridgeConfiguration(){ | |
const translation = this.i18n('entreprise.monEntrepriseMin'); | |
return { | |
cartridge: {component: React.createClass({ | |
render() {return (<div><h2>{translation}</h2></div>); } | |
})}, | |
actions: { |
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
firstService(firstArgs).then((firstData) => { | |
return secondService(secondArgs).then((secondData) => { | |
return { | |
firstKey: firstData, | |
secondKey: secondData | |
} | |
}); | |
}); |
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
# Home | |
HOME='/c/Users/sbernard/' | |
cd $HOME | |
# Variables | |
GATEWAY="$(ipconfig | grep -a Passerelle | grep -P -o -a '([0-9]+\.){3}[0-9]+' | head -n 1)" | |
PROXY="http://172.20.0.9:3128" | |
KLEE_GATEWAY_ETHERNET="172.20.108.1" | |
KLEE_GATEWAY_WIFI="172.20.231.1" |
OlderNewer