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
require 'pathname' | |
require 'date' | |
class WalkDir | |
def initialize (opts = {}) | |
# Set default handlers | |
@file_pattern = opts[:file_pattern] || /^[^.]/ # no hidden files | |
@dir_pattern = opts[:dir_pattern] || /^[^.]/ # no hidden directories | |
@result = opts[:result] || lambda { |pathname, match| return pathname, match } |
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
using UnityEngine; | |
using System; | |
using System.Threading; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
public class Main : MonoBehaviour { | |
private class TimeFunc { | |
public TimeFunc (string name, Func<float> time, bool applyDelta = true) { |
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
# test-kitchen YAML configuration file which discovers values from Chef environment | |
# | |
# Manual configuration got you down? | |
# Don't want to pollute your shell environment with a bunch of secrets? | |
# Why not load those values from Chef?!? | |
# | |
<% | |
require 'yaml' |
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 | |
echo testing "$@" |
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
#!/usr/bin/env ruby | |
# by Patrick Wyatt | |
require 'json' | |
require 'net/http' | |
require 'openssl' | |
require 'uri' | |
class Rollbar | |
def initialize (read_token, write_token) |
NewerOlder