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
<p style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;"> | |
<iframe style="position: absolute; top: 0; height: 100%; width: 100%;" src="https://gist.github.com/RyanNutt/905983e76c20cf3177b7.pibb" width="300" height="150"> | |
</iframe> | |
</p> |
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 web_safe_colors() { | |
$ray = array(); | |
$steps = array( | |
'00', | |
'33', | |
'66', | |
'99', | |
'cc', | |
'ff' ); |
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
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access plus 10 days" | |
ExpiresByType text/css "access plus 1 week" | |
ExpiresByType text/plain "access plus 1 month" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/png "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" | |
ExpiresByType application/x-javascript "access plus 1 month" | |
ExpiresByType application/javascript "access plus 1 week" |
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 | |
require_once(__DIR__.'/vendor/autoload.php'); | |
use Jaguar\Canvas, | |
Jaguar\Coordinate, | |
Jaguar\Color\RGBColor, | |
Jaguar\Drawable\Rectangle; | |
$canvas = new Canvas('image.jpg'); |
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 el = $(the_element); | |
var editor = el.data('ace').editor; | |
editor.$blockScrolling = Infinity; |
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
truncate -s 0 {filename.txt} | |
ls -lh filename.txt | |
truncate -s 0 filename.txt | |
ls -lh filename.txt |
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 new_select = jQuery('<select>', { | |
class: 'some-class-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
var new_select = jQuery('<select>', { | |
'class': 'some-class-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
private String[][] buildStringMatrix( String data ) { | |
int size = (int) (Math.sqrt( data.length() )); | |
String[][] out = new String[ size ][ size ]; | |
for ( int r = 0; r < out.length; r++ ) { | |
for ( int c = 0; c < out[ r ].length; c++ ) { | |
int idx = (r * out[ r ].length) + c; | |
out[ r ][ c ] = data.substring( idx, idx + 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
SELECT CONVERT_TZ(displaytime,'GMT','MET'); |