Aggiungere questo a myproject/index.html
<script src="http://localhost:35729/livereload.js"></script>
Eseguire questi comandi:
sudo npm install -g livereload
cd myproject
date -u "+%Y-%m-%d %H:%M:%S" > /etc/fake-hwclock.data |
#!/bin/bash | |
ACTION=$1 | |
SRC=$2 | |
DST=$3 | |
function pull { | |
mkdir "${DST}" | |
cd "${DST}" | |
mkdir mnt mnt/1 mnt/2 mnt/3 |
dwc_otg.lpm_enable=0 console=tty3 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait loglevel=3 logo.nologo |
try { | |
String command = "LD_LIBRARY_PATH=/vendor/lib:/system/lib service call activity 42 s16 com.android.systemui"; | |
Process proc = Runtime.getRuntime().exec(new String[] { "su", "-c", command }, null); | |
proc.waitFor(); | |
} catch (java.io.IOException e) { | |
e.printStackTrace(); | |
} catch (java.lang.InterruptedException e) { | |
e.printStackTrace(); | |
} |
var request = require('request'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var filename = process.argv[2]; | |
var target = 'http://localhost:3000/upload/' + path.basename(filename); | |
var rs = fs.createReadStream(filename); | |
var ws = request.post(target); |
/*global jQuery:true*/ | |
// jQuery Plugin Boilerplate | |
// A boilerplate for jumpstarting jQuery plugins development | |
// by Alessandro Pezzato | |
// Original author: Stefan Gabos http://stefangabos.ro/jquery/jquery-plugin-boilerplate-revisited/ | |
// | |
// remember to change every instance of "pluginName" to the name of your plugin! | |
(function ($) { |
var Loop = function (step) { | |
var self = this; | |
var lastFrameTimestamp = null; | |
var nextStep = function (timestamp) { | |
if (lastFrameTimestamp === null) { | |
lastFrameTimestamp = timestamp; | |
} | |
var tslf = timestamp - lastFrameTimestamp; | |
step(tslf); | |
lastFrameTimestamp = timestamp; |
ffmpeg: skip frames | |
-vf select="gte(n\, 5)" |
#!/usr/bin/env ruby | |
## first parameter is the row number from pascal triangle | |
def triangle(n) | |
ret = [] | |
(0..n).each{|r| | |
lst=[1] | |
term=1 | |
k=1 |