Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
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 alphabet = 'ABCDEFGHJKMNPQRVWXY0123456789'; | |
var base = alphabet.length; | |
function calculate_tt(lat, lon) { | |
lat += 90.0; | |
lon += 180.0; | |
lat *= 10000.0; | |
lon *= 10000.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
body.unresponsive { | |
min-width: 960px; | |
} | |
body.unresponsive .container { | |
max-width: none !important; | |
width: 960px !important; | |
} | |
body.unresponsive [class^="col-"] { | |
float: left; | |
} |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 4 columns, instead of 1 in line 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
Requirement Priority SAQ Bitmask Validation | |
---------------------------------------------------------- | |
1.1 6 000000011 N | |
1.1.1.a 6 000000011 C | |
1.1.1.b 6 000000011 N | |
1.1.1.c 6 000000011 N | |
1.1.2.a 1 000010011 Y | |
1.1.2.b 1 000010011 Y | |
1.1.3 1 000000011 C | |
1.1.4.a 2 010010011 N |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
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
/* | |
* Simple hash map using javascript objects and an ordered array. | |
* Repeated elements are not allowed. | |
* | |
* @param sort_method By default is ASC order, but you can specified whatever you want. | |
* | |
* The public methods are: | |
* -set | |
* -get | |
* -del |
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 | |
$db->sqliteCreateFunction('like', | |
function ($pattern, $data, $escape = null) use ($db) | |
{ | |
static $modifiers = null; | |
if (isset($modifiers) !== true) | |
{ | |
$modifiers = ((strncmp($db->query('PRAGMA case_sensitive_like;')->fetchColumn(), '1', 1) === 0) ? '' : 'i') . 'suS'; |
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 | |
$paths = array | |
( | |
__DIR__ . '/vendor/', | |
__DIR__ . '/vendor/phunction/phunction.php', | |
); | |
foreach ($paths as $path) | |
{ |
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
#!/bin/bash | |
# CC0 License | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
# | |
# daveBox 0.1.1 (gist.github.com/alixaxel/5605638) | |
# Copyleft (c) 2013 Alix Axel <[email protected]> | |
clear && echo -e "\e[1;31mdaveBox 0.1.1\e[0m\n" |
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 | |
/** | |
* The MIT License | |
* http://creativecommons.org/licenses/MIT/ | |
* | |
* Tidy Wrapper for HTML 5 Indentation | |
* Copyright (c) 2013 Alix Axel <[email protected]> | |
**/ |