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
{ | |
"data": { | |
"repository": { | |
"ref": { | |
"target": { | |
"history": { | |
"nodes": [ | |
{ | |
"associatedPullRequests": { | |
"nodes": [ |
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
blueprint: | |
name: Recent Motion | |
description: Track recent motion as a state | |
domain: automation | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: | |
domain: binary_sensor |
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 | |
// $foo = "12524176338753030162"; | |
// $foo = "12524176338"; | |
$foo = $argv[1]; | |
function bcdechex($dec) { | |
$hex = ''; | |
do { | |
$last = bcmod($dec, 16); |
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
env: flex | |
service: protobuf | |
runtime: php | |
manual_scaling: | |
instances: 1 | |
runtime_config: | |
document_root: web |
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 needs to be zzz_amos because the default site must be loaded last otherwise | |
# We'll end up with the default site being highest priority in routing. | |
server { | |
# Set as default fall back site. | |
server_name _; | |
listen 80 default_server; | |
root /srv/my_app/my_app/public; | |
index index.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
# This is an in-memory cache that can do bulk fetches (via find) | |
# You can queue up ids to fetch at a later time. | |
class BulkFetcher | |
def initialize | |
reset! | |
end | |
def queue(klass, ids) | |
@queue[klass] += Array(ids) |
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
class KageBunshin < RTanque::Bot::Brain | |
NAME = 'kage_bunshin' | |
include RTanque::Bot::BrainHelper | |
def tick! | |
hide_from_sensors! | |
pick_spot! | |
turn_to_spot! | |
acquire_target! |
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
class TooMuchCode < RTanque::Bot::Brain | |
NAME = 'too_much_code' | |
include RTanque::Bot::BrainHelper | |
def tick! | |
@game_mode ||= :one_on_one | |
game_mode_detect! | |
damage_detection! | |
if game_mode_known? |