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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"logicAppName": { | |
"type": "String", | |
"metadata": { | |
"description": "Name of the logic app." | |
} | |
}, |
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
// Replace with your favourite way of requiring a file. | |
require_once(__DIR__ . '/../../../../lib/behat/behat_base.php'); | |
use Behat\Behat\Hook\Scope\AfterStepScope; | |
use Behat\Testwork\Tester\Result\TestResult; | |
// Uncomment this line to enable the debug step. | |
// define('DEBUG',1); | |
// Make sure to rename this class (and the file!) with your plugin's namespace. |
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
# coding: utf-8 | |
import itertools | |
stars = [complex(x,y) for x,y in itertools.product(range(11),range(5)) if (x + y) % 2 == 0] | |
def print_flag(s): | |
lines = [] | |
for y in range(5): | |
line = [] |
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
def inspect_in(o, call): | |
import inspect | |
import subprocess | |
_, line = inspect.getsourcelines(o) | |
f = inspect.getsourcefile(o) | |
subprocess.call([x.format(filename=f, line=line) for x in call]) | |
def subl(o): | |
inspect_in(o, ['subl', '{filename}:{line}']) |
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
echo "This assumes you have Minecraft installed at /Applications/Minecraft.app" | |
cat << 'EOF' > /Applications/Minecraft.app/Contents/MacOS/Minecraft | |
#!/bin/sh | |
PRG=$0 | |
while [ -h "$PRG" ]; do | |
ls=`ls -ld "$PRG"` | |
link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null` |
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
[ | |
{ | |
"address": "284 Gower Street\nPreston 3072", | |
"badge": "Home Brewer", | |
"dates": "18th May, 1:00pm - 4:00pm", | |
"img": "/thumb/?src=../uploads/event/homemade_festival-5312.jpg&w=210&h=150&q=90", | |
"link": "/events/view/34", | |
"tickets": "FREE ENTRY", | |
"title": "Darebin Homemade Food and Wine Festival", | |
"url": "http://www.darebin.vic.gov.au/festivals", |
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
[ | |
{ | |
"address": "284 Gower Street\nPreston 3072", | |
"badge": "Home Brewer", | |
"dates": "18th May, 1:00pm - 4:00pm", | |
"img": "/thumb/?src=../uploads/event/homemade_festival-5312.jpg&w=210&h=150&q=90", | |
"link": "/events/view/34", | |
"tickets": "FREE ENTRY", | |
"title": "Darebin Homemade Food and Wine Festival", | |
"url": "http://www.darebin.vic.gov.au/festivals", |
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
[ | |
{ | |
"address": "284 Gower Street\nPreston 3072", | |
"badge": "Home Brewer", | |
"dates": "18th May, 1:00pm - 4:00pm", | |
"img": "/thumb/?src=../uploads/event/homemade_festival-5312.jpg&w=210&h=150&q=90", | |
"link": "/events/view/34", | |
"tickets": "FREE ENTRY", | |
"title": "Darebin Homemade Food and Wine Festival", | |
"url": "http://www.darebin.vic.gov.au/festivals", |