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
# work around for fogbugz diff screen | |
function toAscii() { | |
vim $(echo $1 | iconv -t ascii//TRANSLIT) | |
} | |
alias vimc='toAscii' |
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
disable = shell("chmod 044 sys/class/timed_output/vibrator/enable", true, 0); | |
enable = shell("chmod 777 sys/class/timed_output/vibrator/enable", true, 0); |
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
musicPlay("/system/media/audio/notifications/Shaula.ogg", 0, 0, ""); | |
If $SILENT neq on | |
AND | |
$SILENT neq vibrate |
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 images = listFiles($folder, false).split("\n"); | |
var select = Math.floor(Math.random() * (images.length)); | |
setWallpaper(images[select]); |
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
background: #FFFFFF; | |
background: url("http://placehold.it/350x150") left no-repeat, -webkit-linear-gradient(#FFFFFF, #000000); | |
background: url("http://placehold.it/350x150") left no-repeat, -o-linear-gradient(#FFFFFF, #000000); | |
background: url("http://placehold.it/350x150") left no-repeat, -moz-linear-gradient(#FFFFFF, #000000); | |
background: #FFFFFF; | |
background: -webkit-linear-gradient(#FFFFFF, #000000); | |
background: -o-linear-gradient(#FFFFFF, #000000); | |
background: -moz-linear-gradient(#FFFFFF, #000000); |
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
jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + | |
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + | |
"change select submit keydown keypress keyup contextmenu" ).split( " " ), | |
function( i, name ) { | |
// Handle event binding | |
jQuery.fn[ name ] = function( data, fn ) { | |
return arguments.length > 0 ? | |
this.on( name, null, data, fn ) : | |
this.trigger( 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
<?php | |
function hook_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id === 'expected_form_name') { // Assuming content type containing list field. | |
if (isset($form['field_settings_list'])) { | |
$settingsForm = &$form['field_settings_list']; | |
$settingsLang = $settingsForm['#language']; | |
$settingsForm[$settingsLang]['#after_build'][] = 'field_settings_list_after_build'; | |
} | |
} | |
} |
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
$numbers: ("3": "three", "4": "four"); | |
@each $number, $i in $numbers { | |
.#{$i}-#{$number} { | |
/* CSS styles */ |
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
jQuery('.columbia-table.object-table-versioned > table > tbody > tr').each(function () { | |
if ( | |
jQuery(this).find('td a.list-view-item-name') && | |
// jQuery(this).find('td a.list-view-item-name').text().indexOf("Apr 4, 2018 2:04:00 PM") >= 0 && | |
jQuery(this).find('td a.list-view-item-name').text().indexOf("(Delete marker)") >= 0 | |
) { | |
jQuery(this).find('td input').click(); | |
} | |
}); |
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
nice -n 19 ionice -c3 $yourStuff |
OlderNewer