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 'bundler/setup' | |
require 'active_model_serializers' | |
require 'benchmark' | |
class BadgeType < Struct.new(:id, :name) | |
include ActiveModel::SerializerSupport | |
end | |
class Badge < Struct.new(:id, :name, :badge_type) |
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
package net.vikhyat.circle; | |
import junit.framework.TestCase; | |
import org.junit.Before; | |
import org.junit.Test; | |
public class CircleTest extends TestCase { | |
private Circle circle; | |
@Before |
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
Hummingbird.LibraryEntryView = Ember.View.extend | |
user: Ember.computed.alias('controller.user') | |
didInsertElement: -> | |
@set 'reactComponent', LibraryEntryReactComponent( | |
content: @get('content') | |
view: this | |
) | |
React.renderComponent @get('reactComponent'), @get('element') |
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 'auth/oauth2_authenticator' | |
class HummingbirdAuthenticator < ::Auth::OAuth2Authenticator | |
CLIENT_ID = 'removed' | |
CLIENT_SECRET = 'removed' | |
def register_middleware(omniauth) | |
omniauth.provider :hummingbird, CLIENT_ID, CLIENT_SECRET | |
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
require 'auth/oauth2_authenticator' | |
class HummingbirdAuthenticator < ::Auth::OAuth2Authenticator | |
CLIENT_ID = 'removed' | |
CLIENT_SECRET = 'removed' | |
def register_middleware(omniauth) | |
omniauth.provider :hummingbird, CLIENT_ID, CLIENT_SECRET | |
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 AgendaTableViewController < UITableViewController | |
def tableView(tableView, numberOfRowsInSection:section) | |
return 10 | |
end | |
def tableView(tableView, cellForRowAtIndexPath:indexPath) | |
tableView.dequeueReusableCellWithIdentifier('test') || | |
UITableViewCell.alloc.initWithStyle(UITableViewCellStyleDefault, reuseIdentifier:'test') | |
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
groove_fanatics:boolean | |
synchronians:boolean | |
synchronians_group_name:string | |
charlie_madchap:boolean | |
charlie_madchap_group_name:string | |
band_slam:boolean | |
band_slam_group_name:string | |
alaap:boolean | |
instrumania:boolean | |
instrumania_instrument_name:string |
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 PriorityQueue | |
def initialize | |
@pq = [] | |
@sorted = true | |
end | |
def push(object, priority) | |
@pq << [ object, priority ] | |
@sorted = false | |
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
5 3 | |
7 4 | |
5 3 | |
10 1 | |
7 4 | |
6 2 | |
2 2 | |
2 1 | |
1 1 | |
13 13 |
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
<html> | |
<head> | |
<title>Velox: Random Latin Words</title> | |
<style type="text/css"> | |
p { | |
font-family: Georgia,Palatino,Times,'Times New Roman',sans-serif; | |
} | |
a:link, a:visited { | |
color: #f30; | |
font-size: 75%; |