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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
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 Foo | |
class Bar | |
end | |
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
#import "AppController.h" | |
#import "Person.h" | |
@implementation AppController | |
-(id)init | |
{ | |
NSLog(@"Initializing"); | |
people = [Person findAll]; | |
return self; | |
} |
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
The October GDG meetup will give an introduction to programming | |
in Go. In the first half of the session Marius Mathiesen will give a brief | |
introduction to the language's core features. | |
In the second half Thomas Kjeldahl Nilsson will guide us through | |
a real-world example of using Go, a small tool he uses in his | |
day-to-day work. |
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
def openAnything(source): | |
"""URI, filename, or string --> stream | |
This function lets you define parsers that take any input source | |
(URL, pathname to local or network file, or actual data as a string) | |
and deal with it in a uniform manner. Returned object is guaranteed | |
to have all the basic stdio read methods (read, readline, readlines). | |
Just .close() the object when you're done with it. | |
Examples: |
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 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
class Gist | |
attr_accessor :gist_id, :title, :author | |
def self.find_all(author="zmalltalker") | |
result = [] | |
doc = Hpricot(open("http://gist.github.com/#{author}")) | |
(doc/"div.file").each do |file| | |
link = (file/"div.info/span/a").first |
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
# encoding: utf-8 | |
alias :"✎" :puts | |
class Person | |
attr_accessor :name | |
def initialize(a_name) | |
self.name = a_name | |
end | |
def ☺(someone) | |
✎ "#{self} loves #{someone}" | |
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
end | |
end | |
end | |
end | |
end | |
items << item | |
end | |
end | |
end | |
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
class="active" | |
<% | |
else | |
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
class FalseClass | |
def ifTrue(blk, options) | |
options[:ifFalse].call | |
end | |
end | |
class TrueClass | |
def ifTrue(blk, options) | |
blk.call | |
end |
OlderNewer