This file contains hidden or 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
<script type="text/javascript"> | |
var _echolo = _echolo || []; | |
//S'il y a un utilisateur de connecté, on le spécifie avec son ID | |
_echolo.push(['setUser', 12]); | |
//Pour tracker une visite sur une page | |
_echolo.push(['trackVisit']); |
This file contains hidden or 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 CONFIG = require('./config'); | |
var mongoose = require('mongoose'), | |
express = require('express'), | |
app = express(), | |
sanitize = require('validator').sanitize, | |
server = require('http').createServer(app), | |
io = require('socket.io').listen(server, { | |
'flash policy server' : false | |
}); |
This file contains hidden or 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
<?php | |
class Message extends Eloquent { | |
protected $table = 'messages'; | |
protected $guarded = array(); | |
protected $fillable = array('filename', 'duration', 'from', 'city'); | |
protected $hidden = array('from','city','id','created_at','updated_at'); |
This file contains hidden or 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
$('body').append('<iframe src="about:blank" name="extractIframe" id="extractIframe"></iframe>') | |
$('form[name=MyArchivedPlaylistsForm]').attr('target','extractIframe'); | |
var binded = false; | |
var rowIndex = 1; | |
function loadNext() { | |
if(!binded) { | |
$('#extractIframe').bind('load',function() { | |
console.log('loaded'); | |
if(!$('#extractIframe').contents().find('form[name=PlaylistContentForm] table').length) { | |
return; |
This file contains hidden or 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
<?php | |
$eventsRebuilded = array(); | |
foreach($events as $event) { | |
foreach($event->dates as $date) { | |
$datestart = date('Y-m-d',strtotime($date->datestart)); | |
if(!isset($eventsRebuilded[$date->datestart])) { | |
$eventsRebuilded[$date->datestart] = array(); | |
} |
This file contains hidden or 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
require.config({ | |
paths: { | |
jquery: '../components/jquery/jquery', | |
underscore: '../components/underscore/underscore', | |
preloadjs: '../components/scenejs/vendor/preloadjs' | |
}, | |
shim: { | |
underscore: { | |
exports: '_' | |
}, |
This file contains hidden or 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
// Avoid `console` errors in browsers that lack a console. | |
(function(){for(var a,e=function(){},b="assert clear count debug dir dirxml error exception group groupCollapsed groupEnd info log markTimeline profile profileEnd table time timeEnd timeStamp trace warn".split(" "),c=b.length,d=window.console=window.console||{};c--;)a=b[c],d[a]||(d[a]=e)})(); |
This file contains hidden or 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 toggle = true; | |
function mouseFlicker(e) { | |
if(toggle) { | |
var multiplier = Math.round(Math.random()*1)+3; | |
var width = window.innerHeight*wish.imageRatio; | |
var height = window.innerHeight; | |
var newWidth = width*multiplier; |
This file contains hidden or 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
<?php | |
header('Content-type: audio/mpeg;'); | |
system('espeak -v fr '.escapeshellarg($_REQUEST['text']).' --stdout | lame --quiet - -'); | |
exit(); |
This file contains hidden or 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
/* | |
* | |
* | |
* Forward tweets to SMS in realtime | |
* | |
* | |
*/ | |
var TWILIO_ACCOUNT_SID = ''; //Twilio Account SID | |
var TWILIO_AUTH_TOKEN = ''; //Twilio AUTH Token |