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
#!/usr/bin/awk -f | |
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff | |
# My copy here is written in awk instead of C, has no compelling benefit. | |
# Public domain. @thingskatedid | |
# Run as awk -v x=xyz ... or env variables for stuff? | |
# Assumptions: the data is evenly spaced along the x-axis | |
# TODO: moving average |
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
function strUnhash(h) | |
{ | |
str = ""; | |
letters = "acdfgilmnoprstuw"; | |
while(h>23) { | |
c = h % 23; | |
h = (h-(h%23))/23; // or a simpler Math.floor(h / 23) as h is always positive; | |
str = letters[c] + str; | |
} |
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
#!/bin/bash | |
### | |
# | |
# newLaravelProject | |
# | |
# from an idea to a working freshly installed laravel in 26 seconds using | |
# composer create-project with prestissimo. | |
# | |
# Sergio Bruder <[email protected]> |
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
^[^[[C2015-10-21 15:39:19 [ DEBUG ] InputKeyboard.h @ 23 - Input: "Return" | |
2015-10-21 15:39:19 [ DEBUG ] CachedRegexMatcher.cpp @ 29 - Found cached match for input: "Keyboard" | |
2015-10-21 15:39:19 [ DEBUG ] CachedRegexMatcher.cpp @ 29 - Found cached match for input: "Return" | |
2015-10-21 15:39:19 [ DEBUG ] InputMapping.cpp @ 68 - Mapped: "Return" to action: "enter" | |
2015-10-21 15:39:19 [ DEBUG ] InputComponent.cpp @ 96 - Sending action: "enter" | |
2015-10-21 15:39:20 [ DEBUG ] InputKeyboard.h @ 23 - Input: "Return" | |
2015-10-21 15:39:20 [ DEBUG ] CachedRegexMatcher.cpp @ 29 - Found cached match for input: "Keyboard" | |
2015-10-21 15:39:20 [ DEBUG ] CachedRegexMatcher.cpp @ 29 - Found cached match for input: "Return" | |
2015-10-21 15:39:20 [ DEBUG ] InputMapping.cpp @ 68 - Mapped: "Return" to action: "enter" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// ==UserScript== | |
// @name remove folha's paywall | |
// @namespace http://folha.uol.com.br/ | |
// @version 0.1 | |
// @description just remove folha's paywall | |
// @include http://*.folha*/* | |
// @match http://*.folha*/* | |
// @include http://*.blogfolha*/* | |
// @match http://*.blogfolha*/* | |
// @copyright 2012+, Me |
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
<div class="<?php echo $form->fieldClass($model, 'vehicle_fuel_type'); ?>"> | |
<?php echo $form->labelEx($model,'vehicle_fuel_type'); ?> | |
<div class="input"> | |
<?php echo $form->dropDownList($model,'vehicle_fuel_type', | |
array('GA'=>'Gasolina', | |
'AL'=>'Álcool', | |
'DI'=>'Diesel', | |
'GN'=>'Gás Natural', | |
'EL'=>'Eletricidade', | |
), |