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 vibrate = function() { | |
var shake= 3; | |
$(".actionsMode[mode='on']").stop(true, false) | |
.css({ | |
position: 'relative', | |
left: Math.round(Math.random() * shake) - ((shake + 1) / 2) + 'px', | |
top: Math.round(Math.random() * shake) - ((shake + 1) / 2) + 'px' | |
}); |
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
Buscar todas las lineas que contengan 'campaigns/' y 'info' | |
````bash | |
grep -e "campaigns/" *.log | grep -e "info" | |
```` | |
Contar todas las líneas que contengan 'campaigns/' y 'info' | |
````bash | |
grep -e "campaigns/" *.log | grep -e "info" | wc -l | |
```` |
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
// disk free (-h human-readabke) | |
df -h | |
// disk usage | |
du -h --max-depth=1 |
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
Ibeacon App Android | |
https://github.com/mikaelkindborg/evo-demos/tree/master/Demos2015/cordova-ibeacon | |
Un plugin no funcionaba (creo que era el de notificaciones) Aqui te enseñan a borrarlos | |
http://stackoverflow.com/a/30249591/1171049 | |
//iOS app to simulate ibeacon | |
https://itunes.apple.com/us/app/cliqtags-beacon-advertiser/id1043842313 | |
// Android: Installing Cordova and SDKs on OS X |
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
// Guardamos en un array los valores | |
var values = []; | |
var headers = []; | |
// get our values (get rows) | |
$('.datatables5 tbody tr').each(function(i, v){ | |
values[i] = []; | |
//miramos cuantas columnas tiene para quitar la última de total |
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
tail -300 /var/log/apt/history.log |
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
#add script to .oh-my-zsh/lib/functions.zsh | |
function rm () { | |
local path | |
for path in "$@"; do | |
# ignore any arguments | |
if [[ "$path" = -* ]]; then : | |
else | |
local dst=${path##*/} | |
# append the time if necessary |
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
BEGIN; | |
UPDATE | |
companies | |
SET | |
name = UPPER(name); | |
UPDATE | |
companies | |
SET | |
fiscal_name = UPPER(fiscal_name); |
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
Route::get('redis', array('as' => 'cache', 'do' => function() | |
{ | |
$redis = Redis::connection(); | |
//STRING | |
$redis->set('name', 'Taylor'); | |
$name = $redis->get('name'); | |
// LIST | |
// A list is a series of ordered values. Some of the important commands for interacting with lists are RPUSH, LPUSH, LLEN, LRANGE, LPOP, and RPOP. |
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
<div class="row"> | |
<div class="col-md-8"> </div> | |
<div class="col-md-4"> | |
<div class="form-inline" role="form" style="margin-bottom: 6px"> | |
<div class="form-group" > | |
<input id="date_fix" name="dates_dateselectradio" type="radio" value="fix" checked="checked"> | |
</div> | |
<div class="form-group"> |
NewerOlder