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
var clickOverrides = function(){ | |
// Automatically mark ALL as read and scroll to it | |
// when clicking on a channel (stared or normal) | |
$('#channel-list, #starred-list').on('click',function(){ | |
TS.ui.forceMarkAllRead(); | |
TS.ui.scrollMsgsSoFirstUnreadMsgIsInView(); | |
}); | |
}; |
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
.light_theme .message { | |
color: #fff; | |
font-size: 16px; | |
} | |
.message .mention { | |
//background: #ccc; | |
//color: #f60; | |
font-weight: bold; | |
} |
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
http://ox-d.sbnation.com/w/1.0/acj?o=5874435405&callback=OX_5874435405&ju=http%3A//www.sbnation.com/college-football/2013/11/10/5089030/bcs-rankings-standings-2013-florida-state-ohio-state&jr=&tid=17%2C1%2C12&pgid=13535&auid= | |
538460 | |
549373 | |
320307 | |
&c.browser_width=xlarge&c.device_type=desktop&c.network=sbn&c.entry_id=4853071&c.entry_type=article&c.hub_page=college-football&c.entry_group=1%2C7%2C17033%2C17367%2C17505%2C18451%2C18699%2C20451&c.campaign_id=1045&c.component_name=NCAA%20Content%20Takeover&c.component_id=9691&c.component_type=reskin&res=1920x1200x24&plg=swf%2Csl%2Cqt%2Cshk%2Cpm&ch=UTF-8&tz=420&sd=5 |
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
svg { | |
width: 100%; | |
height: 100%; | |
g#clickable path, | |
g#clickable rect, | |
g#clickable text, | |
{ | |
cursor: pointer; | |
} |
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
var BitByte = BitByte || {}; | |
// Note - This needs a dom manipulation library like Zepto or jQuery | |
BitByte.SVG = (function($) { | |
"use strict"; | |
// the constructor | |
var svg = function() { | |
//private variables | |
var $svg = $(arguments[0] || 'svg'); |
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 Cricket | |
{ | |
static void Main(string[] args) | |
{ | |
bool condition1 = true; | |
bool condition2 = true; | |
bool condition3 = true; | |
bool condition4 = true; | |
bool condition5 = true; | |
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
def trivial_method(a,b) | |
if a | |
true | |
else | |
false | |
end | |
end | |
# convert to |
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
def do_something(a,b={}) | |
puts "a is: " + a.to_s | |
puts "b is: " + b.inspect | |
end | |
do_something("hi") | |
do_something("Hello",{:cool_guy => "Levi"}) | |
do_something("Hello",:cool_guy => "Levi") |
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 Object | |
def try_or_else(method_name,else_thing) | |
return self.public_send(method_name) | |
rescue NoMethodError | |
return else_thing | |
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
(define empty-stack-v (lambda () (vector) )) | |
(define empty-stack-v? (lambda(stack) (equal? stack (empty-stack-v)))) | |
(define push-v (lambda (stack item) | |
(if (eqv? stack (empty-stack-v)) (vector item) | |
(vector-append (vector item) stack)) | |
)) | |
(define pop-v (lambda (stack) | |
(if (equal? stack (empty-stack-v)) |