On my dev server
##Install git
su
apt-get install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
// | |
// split.js | |
// parse large files by new lines. | |
// uses buffer for very long lines | |
// | |
// Created by gaspard on 2012-07-19. | |
// wtfpl | |
// | |
# /bin/sh | |
case $1 in | |
start) | |
/Applications/MAMP/bin/startMysql.sh | |
/Applications/MAMP/bin/startApache.sh | |
;; | |
stop) | |
/Applications/MAMP/bin/stopMysql.sh | |
/Applications/MAMP/bin/stopApache.sh |
// the shortest strlen function | |
function cc($s){ | |
if(($ss = substr($s,1))!='') return 1+cc($ss); | |
else return 1; | |
} |
<h2>Rôles et auteurs</h2> | |
<B_equipe> | |
<ul> | |
<BOUCLE_equipe(projets_liens){id_projet}> | |
<BOUCLE_equipe_auteur(AUTEURS){tous}{id_auteur=#ID_OBJET}> | |
<li> | |
<a href="#URL_AUTEUR">#NOM</a> | |
[((#_equipe:ROLE|role{auteur}))] | |
</BOUCLE_equipe_auteur> | |
</li> |
On my dev server
##Install git
su
apt-get install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
var http = require('http'); | |
var cache = { | |
pages : {}, | |
urls : [] | |
}; | |
var site = { | |
// hostname: 'oldlaps.freelancis.net', |
(function (c) { | |
'use strict'; | |
var prop, method, | |
empty = {}, | |
dummy = function() {}, | |
properties = 'memory'.split(','), | |
methods = ('assert,clear,constructor,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,' | |
+ 'info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn').split(','); | |
while (prop = properties.pop()) c[prop] = c[prop] || empty; | |
while (method = methods.pop()) c[method] = c[method] || dummy; |
"use strict"; | |
var WebSocketServer = require('ws').Server; | |
var serve = function(options) { | |
var port = options.port || 9802; | |
var wss = new WebSocketServer({port: port}); | |
console.log('serving socket on http://localhost:'+port) | |
var users = []; |
// | |
// images summary | |
// output all images in the page | |
// quick check on mobile version the images ratios | |
// (only for images that are included into the dom) | |
// | |
(function($,window,document){ | |
var r = { | |
onepix : [], | |
dropped: [], |
<!-- | |
RATP or RAPT ? | |
--> | |
<osm-script output="json" timeout="25"> | |
<!-- gather results --> | |
<union> | |
<!-- query part for: “operator=rapt” --> | |
<query type="node"> | |
<has-kv k="operator" v="RAPT"/> | |
<bbox-query s="48.8326901185081" w="2.325925827026367" n="48.86477122456225" e="2.379741668701172"/> |