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 System; | |
using System.IO; | |
class Program { | |
public static void Main() { | |
var d = new DirectoryInfo("buzz"); | |
Console.WriteLine("Exists:{0} Name:{1}\n", d.Exists, d.Name); | |
Console.WriteLine("Create()"); | |
d.Create(); |
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
lib/openid/store/memcache.rb | 28 ++++++++++++++++++++-------- | |
1 files changed, 20 insertions(+), 8 deletions(-) | |
diff --git a/lib/openid/store/memcache.rb b/lib/openid/store/memcache.rb | |
index bb4b106..8d6242b 100644 | |
--- a/lib/openid/store/memcache.rb | |
+++ b/lib/openid/store/memcache.rb | |
@@ -30,10 +30,14 @@ module OpenID | |
# the one matching association is expired. (Is allowed to GC expired | |
# associations when found.) |
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
//BEGIN SerializeAnything | |
/* @projectDescription jQuery Serialize Anything - Serialize anything (and not just forms!) | |
* @author Bramus! (Bram Van Damme) | |
* @version 1.0 | |
* @website: http://www.bram.us/ | |
* @license : BSD | |
*/ | |
(function($) { | |
$.fn.serializeAnything = function() { |
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 'sinatra' | |
require 'dm-core' | |
require 'dm-validations' | |
require 'dm-timestamps' | |
require 'dm-serializer' | |
require 'syntaxi' | |
require 'haml' | |
require 'sass' | |
DataMapper.setup(:default, "sqlite3://#{Dir.pwd}/pastebin.sqlite3") |
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 'open-uri' | |
require 'xmlsimple' | |
require 'yaml' | |
config = YAML::load(File.open('musicmonday.yaml')) | |
lastfm_username = config['settings']['lastfm']['username'] | |
lastfm_api = config['settings']['lastfm']['api'] | |
recent_tracks_url = "http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=#{lastfm_username}&api_key=#{lastfm_api}&limit=1" |
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 "strscan" | |
class JSONParser | |
AST = Struct.new(:value) | |
def parse(input) | |
@input = StringScanner.new(input) | |
parse_value.value | |
ensure | |
@input.eos? or error("Unexpected data") | |
end | |
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
## Configuration file for a typical Tor user | |
## Last updated 12 April 2009 for Tor 0.2.1.14-rc. | |
## (May or may not work for much older or much newer versions of Tor.) | |
## | |
## Lines that begin with "## " try to explain what's going on. Lines | |
## that begin with just "#" are disabled commands: you can enable them | |
## by removing the "#" symbol. | |
## | |
## See 'man tor', or https://www.torproject.org/tor-manual.html, | |
## for more options you can use in this file. |
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
#Color table from: http://www.understudy.net/custom.html | |
fg_black=%{$'\e[0;30m'%} | |
fg_red=%{$'\e[0;31m'%} | |
fg_green=%{$'\e[0;32m'%} | |
fg_brown=%{$'\e[0;33m'%} | |
fg_blue=%{$'\e[0;34m'%} | |
fg_purple=%{$'\e[0;35m'%} | |
fg_cyan=%{$'\e[0;36m'%} | |
fg_lgray=%{$'\e[0;37m'%} | |
fg_dgray=%{$'\e[1;30m'%} |
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
" Vim syntax file | |
" Language: Jade | |
" Filenames: *.jade | |
" Ported from tvim-haml - https://github.com/tpope/vim-haml | |
" For use with Jade - http://jade-lang.com/ | |
" Now maintained at: https://github.com/statianzo/vim-jade | |
if exists("b:current_syntax") | |
finish | |
endif |
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 System; | |
using System.Collections.Generic; | |
using System.Dynamic; | |
using System.Linq; | |
using System.Text; | |
namespace CSharpFourScratch | |
{ | |
internal class Program | |
{ |