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
char *s="char *s=%c%s%c%c%c%cmain()%c{%c printf(c,10,34,c,34,59,10);%c printf(s,34,s,34,59,10,10,10,10,10,10,10);%c}%c"; | |
main() | |
{ | |
printf(s,34,s,34,59,10,10,10,10,10,10,10); | |
} |
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
#define t(x) main(){printf(#x"\nt("#x")\n");} | |
t(#define t(x) main(){printf(#x"\nt("#x")\n");}) |
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/perl -w | |
use strict; | |
my %letters=( | |
"A" => "ALFA", | |
"B" => "BRAVO", | |
"C" => "CHARLIE", | |
"D" => "DELTA", | |
"E" => "ECHO", |
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 Array | |
def self.toy(n=10, &block) | |
block_given? ? Array.new(n,&block) : Array.new(n) {|i| i+1} | |
end | |
end | |
class Hash | |
def self.toy(n=10) | |
Hash[Array.toy(n).zip(Array.toy(n){|c| (96+(c+1)).chr})] | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<%= stylesheet_link_tag "application" %> | |
<%= javascript_include_tag :defaults %> | |
<%= csrf_meta_tag %> | |
<%= yield(:head) %> | |
<%=javascript_tag "$(document).ready(init)" %> | |
</head> | |
<body> |
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_self | |
*/ | |
html, body { | |
background-color: #eee; | |
} | |
body { | |
padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */ | |
} |
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 | |
require 'rubygems' | |
require 'anemone' | |
require 'optparse' | |
require 'ostruct' | |
Anemone.crawl(ARGV[0], {:discard_page_bodies => true}) do |anemone| | |
anemone.after_crawl do |pages| |
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 Array | |
def self.toy(n=10, &block) | |
block_given? ? Array.new(n,&block) : Array.new(n) {|i| i+1} | |
end | |
end | |
class Hash | |
def self.toy(n=10) | |
Hash[Array.toy(n).zip(Array.toy(n){|c| (96+(c+1)).chr})] | |
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
[1] pry(main)> Date.today | |
NoMethodError: undefined method `today' for Date:Class | |
from (pry):1:in `__pry__' | |
[2] pry(main)> require 'date' | |
=> true | |
[3] pry(main)> Date.today | |
=> #<Date: 2015-03-05 ((2457087j,0s,0n),+0s,2299161j)> | |
[4] pry(main)> |
OlderNewer