View Clodogamev1.0
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
VERSION BUILD=8070701 RECORDER=CR | |
URL GOTO=http://www.clodogame.fr/overview/ | |
TAG POS=2 TYPE=SPAN ATTR=TXT:Actions | |
WAIT SECONDS=3 | |
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:Submit2 | |
WAIT SECONDS=600 | |
URL GOTO=http://www.clodogame.fr/overview/ | |
TAG POS=2 TYPE=SPAN ATTR=TXT:Actions | |
WAIT SECONDS=3 | |
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=NAME:Submit2 |
View Screw counter (tbd)
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
radiusOfMotorShape = 2.5; | |
radiusOfLinkToMotor = radiusOfMotorShape + 1; | |
radiusOfHoleInTheMiddleOfBigPlatform = radiusOfLinkToMotor + 1; | |
radiusOfScrewToFixToMotor = 1.5; | |
// See: http://www.tid-inox.com/visserie/934a4,41.html | |
// M3 | |
ePartOfTheThingToCatch = 6.01; | |
m = 3; | |
diameterOfLittleHole = (ePartOfTheThingToCatch) + 0.3; | |
diameterOfBigHole = diameterOfLittleHole + 2; |
View Get sum of t411 column in Future Téléchargements
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
for(var total=0,i=0;i<$("tbody").children().size();i++){var string=$($("tbody").children()[i]).children()[6].innerHTML,split=string.split(" ");value=parseFloat(split[0])*("MB"==split[1]?1:1e3),total+=value} |
View gist:6ce504ff3b53427defe0
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 re | |
from subprocess import call | |
import sys | |
import os | |
rootdir = '.' | |
dictOfFilms = {} |
View gist:1dd21daf81d24fa712757a88ef7b61bd
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
alias ip="ifconfig | egrep -o '([[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3})[[:space:]]netmask[[:space:]]0x[[:xdigit:]]{8}[[:space:]]broadcast'|egrep -o '([[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3})' | pbcopy" |
View Cleanup Parse Direct from Mongo
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 i = 0; | |
db.getCollection('fs.files').find({}).forEach(function(element){ | |
if (!db.getCollection('_User').find({profilePicture: element.filename}).toArray().length > 0){ | |
i++; | |
db.getCollection('fs.files').remove({filename: element.filename}) | |
} | |
}) | |
print(i) |
View Jobninja logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Jobninja_red logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:127b767a5ba14c5dcaea1bb09f601642
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
daemon off; | |
#Heroku dynos have at least 4 cores. | |
worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; | |
events { | |
use epoll; | |
accept_mutex on; | |
worker_connections 1024; | |
} |
View task_db.sql
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
create table task_tb | |
( | |
id serial not null | |
constraint task_tb_pkey | |
primary key, | |
type varchar(110), | |
arguments varchar(2000), | |
created_at timestamp, | |
constraint unique_task | |
unique (type, arguments) |
OlderNewer