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
<?xml version="1.1" ?> | |
<?js | |
var foo; | |
console.log("Hello"); | |
?> | |
<js:root xmlns:js="http://astro73.com/xml/grue/js"> | |
<foo js:if="bar"> | |
Hi. |
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
worlds: | |
- name : underworld # The name of a world to apply giant caves | |
sxz : 200 # Horizontal stretch (larger number = wider cave) | |
sy : 100 # Vertical stretch (larger number = taller cave) | |
cutoff : 62 # Minimum Perlin density cutoff (-100 to 100) | |
miny : 6 # Lower bound of cave zone | |
maxy : 250 # Uppoer bound of cave zone | |
debug : false # Turns on invert mode for experimenting with config values (true/false) |
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 __getattr__(self, name): | |
return lambda *p, **kw: self.callapi(name, *p, **kw) | |
def callapi(self, name, *p, **kw): | |
if 'context' in kw: | |
context = kw['context'] | |
del kw['context'] | |
else: | |
context = self.getContext() | |
# ... call modules |
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
diff --git a/includes/functions_posting.php b/includes/functions_posting.php | |
index a94364e..b848faa 100644 | |
--- a/includes/functions_posting.php | |
+++ b/includes/functions_posting.php | |
@@ -1179,6 +1179,19 @@ function user_notification($mode, $subject, $topic_title, $forum_name, $forum_id | |
trigger_error('NO_MODE'); | |
} | |
+ // IRC Notifications | |
+ include_once($phpbb_root_path . 'ircnotify/notify.php'); |
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
#!/usr/bin/python -i | |
import argparse | |
import collections | |
import Queue | |
import logging | |
import requests | |
import threading | |
import urlparse | |
from bs4 import BeautifulSoup |
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
#define SHOW_LENGTH 350 // How long to show each color | |
#define WAIT_LENGTH 1000 // How long to wait for the user to tap each one | |
#define TIME_FOR_TURN(t) 500 // Time for each correct turn | |
#define WINNER_BONUS (15*1000) // Time for winning the game | |
/* | |
RXLED | |
PB3:6 Buttons | |
PD0:2 Center Input selector | |
TXO Radio Transmit(?) | |
PD4 Color Button Select |
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
#!/bin/sh | |
sudo modprobe v4l2loopback | |
# This works just fine, w/o sound | |
#gst-launch-0.10 filesrc location=$1 ! decodebin ! v4l2sink device=/dev/video0 | |
# This fails to play | |
gst-launch-0.10 filesrc location=$1 ! decodebin name=decoder \ | |
decoder. ! audioconvert ! alsasink \ | |
decoder. ! videoconvert ! v4l2sink device=/dev/video0 \ |
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
from __args__ import doc | |
if docs['score'] > 50: | |
yield None, {'player_name': doc['name']} |
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
import os | |
import sys | |
# Approximate | |
def _generated_function_name(**__args__): | |
spam = __args__['spam'] | |
eggs = __args__['eggs'] | |
del __args__ | |
return os.path.exists(os.path.join(spam, eggs)) |
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
[httpd_global_handlers] | |
_example = {couch_httpd_proxy, handle_proxy_req, <<"http://example.com">>} | |
[httpd_db_handlers] | |
_example = {couch_httpd_proxy, handle_proxy_req, <<"http://example.com">>} | |
[httpd_design_handlers] | |
_example = {couch_httpd_proxy, handle_proxy_req, <<"http://example.com">>} |