This file contains hidden or 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
| Lisa_Rose: | |
| Lady_in_the_Water: 2.5 | |
| Snakes_on_a_Plane : 3.5 | |
| Just_My_Luck: 3.0 | |
| Superman_Returns: 3.5 | |
| You_Me_and_Dupree: 2.5 | |
| The_Night_Litener: 3.0 | |
| Gene_Seymour: | |
| Lady_in_the_Water: 3.0 |
This file contains hidden or 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/sh | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 | |
| then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
| fi | |
This file contains hidden or 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 './hand.rb' | |
| class AskHandService | |
| CHOICE_NUMBER_START = 1 | |
| def initialize | |
| @hands = Hand.rock_paper_scissors | |
| end | |
| def choices |
This file contains hidden or 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 SocketServerClass | |
| _sioListenPort = 8080 | |
| constructor : (@app, @nodeModules, @appOption) -> | |
| @sio = @nodeModules.sio | |
| @http = @nodeModules.http | |
| @appServer = @http.createServer(@app) | |
| # session -------------------- | |
| @mongoose = require 'mongoose' |
This file contains hidden or 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 PatternConverter | |
| def initialize(pattern, &convert) | |
| @pattern = pattern | |
| @convert = convert | |
| end | |
| def ===(s) | |
| @pattern === s | |
| end |
This file contains hidden or 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
| puts 'gist gem' |
This file contains hidden or 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
| # app/controllers/post_actions_controller.rb | |
| class PostActionsController < ApplicationController | |
| # POST /posts/:id/publish.json | |
| def publish | |
| if current_post.update(state: :publish, published_at: Time.zone.now) | |
| 〜 | |
| else | |
| 〜 | |
| end | |
| end |
This file contains hidden or 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 'with_refinements' | |
| module Ext | |
| refine Integer do | |
| def asdjflk | |
| "ujihisa #{self}" | |
| end | |
| end | |
| end |
OlderNewer