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 "vendor/autoload.php"; | |
$HTML = <<<EOL | |
<html> | |
<head> | |
<title>Foo</title> | |
</head> | |
<body> | |
<p>foo</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
module Jekyll | |
class CategoryListTag < Liquid::Tag | |
# safe true | |
def initialize(tag_name, text, tokens) | |
super | |
end | |
def render(context) | |
html = "" |
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
package main | |
import ( | |
"github.com/Masterminds/cookoo" | |
"github.com/Masterminds/cookoo/io" | |
"os" | |
) | |
func main() { | |
_, _, cxt := cookoo.Cookoo() |
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
### Keybase proof | |
I hereby claim: | |
* I am technosophos on github. | |
* I am technosophos (https://keybase.io/technosophos) on keybase. | |
* I have a public key whose fingerprint is ABA2 5295 98F6 626C 420D 335B 62F4 9E74 7D91 1B60 | |
To claim this, I am signing this object: |
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
tell application "MacVim" | |
activate | |
set visible of first window to true | |
end tell |
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
package main | |
import ( | |
"github.com/Masterminds/cookoo" | |
"github.com/Masterminds/cookoo/cli" | |
"github.com/Masterminds/cookoo/fmt" | |
"flag" | |
) |
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
treegreen = color('green'); | |
new Text('Merry Christmas').addTo(stage).attr({ | |
fontFamily: 'Arial, sans-serif', | |
fontSize: '48', | |
textFillColor: 'red', | |
textStrokeColor: 'green', | |
textStrokeWidth: 2, | |
x: -400 | |
}).animate('2s', {x:150, y:50}, { | |
easing: "bounceIn" |
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
This is a random gist for sdboyer. |
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 "../querypath/src/QueryPath/QueryPath.php"; | |
$apikey = 'YOUR_KEY_HERE'; | |
$text = 'YOUR TEXT HERE'; | |
/* | |
// Code for working with this. | |
$qp = qp('./amp2.xml'); |
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
function checkPlain(str) { | |
var r = new RegExp('(&)|(\")|(<)|(>)|([^&\"<>]*)', 'g'); | |
var replacements = ["&", """, "<", ">"]; | |
var retval = ''; | |
var match = r.exec(str); | |
while (match[0] != "") { | |
for (var i = 1; i < match.length; ++i) { | |
if (match[i] != undefined) { | |
retval += (i == 5 ? match[i] : replacements[i-1]); | |
} |
OlderNewer