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
| at_prefixed_chunks = text.split(/(?<=\s)@/).reject(&:blank?) |
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
| workload.each do |screen_name| | |
| statuses = Status.retrieve(screen_name, Status.cursor[screen_name]) | |
| next if statuses.blank? | |
| .... | |
| 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
| // | |
| // LocationViewController.m | |
| // BoxBox | |
| // | |
| // Created by Warut Surapat on 12/19/11. | |
| // Copyright (c) 2011 StardustDream. All rights reserved. | |
| // | |
| #import "LocationViewController.h" | |
| #import "GlobalData.h" |
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 'spec_helper' | |
| describe FeedsController do | |
| let!(:user) { User.make!(:registered) } | |
| render_views | |
| describe "GET 'events'" do | |
| it "successfully responds to ICS format" do | |
| get 'events', :format => :ics, :token => user.feed_token |
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
| module NetworkBelongable | |
| module OneToOne | |
| extend ActiveSupport::Concern | |
| included do | |
| self.has_many "#{self.to_s.downcase}_networks".to_sym | |
| self.has_many :networks, through: "#{self.to_s.downcase}_networks".to_sym | |
| Network.has_many "#{self.to_s.downcase}_networks".to_sym | |
| Network.has_many self.to_s.downcase.pluralize.to_sym, through: "#{self.to_s.downcase}_networks".to_sym |
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
| [[ -s "/Users/warut/.rvm/scripts/rvm" ]] && source "/Users/warut/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
| PATH=/usr/local/sbin:/usr/local/bin:$PATH | |
| RED="\[\033[0;31m\]" | |
| GREEN="\[\033[0;32m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| LIGHT_BLUE="\[\033[0;34m\]" | |
| NO_COLOR="\[\033[0m\]" | |
| IMGS=( |
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
| package th.co.fingertip.eventproFP.ui; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import th.co.fingertip.eventproFP.EventproFPEnum; | |
| import android.app.Activity; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; |
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
| scope :in_network, ->(network) do | |
| joins{user_network_profiles}.where{ user_network_profiles.network_id == network.id } | |
| 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
| # built application files | |
| *.apk | |
| *.ap_ | |
| # files for the dex VM | |
| *.dex | |
| # Java class files | |
| *.class |
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
| [color] | |
| ui = true | |
| [user] | |
| name = Warut Surapat | |
| email = s.warut@gmail.com | |
| [alias] | |
| st = status | |
| br = branch | |
| df = diff | |
| co = checkout |