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
Skippping free! dj - oh, my god! - Title contains ambiguous buttsex | |
Skippping free! dj - one more romance - Title contains ambiguous buttsex | |
Skippping free! dj - oyasumi mae secret - Title contains ambiguous buttsex | |
Skippping free! dj - rn 25 - Title contains ambiguous buttsex | |
Skippping free! dj - room for two - Title contains ambiguous buttsex | |
Skippping free! dj - shark & dolphin rendezvous - Title contains ambiguous buttsex | |
Skippping free! dj - smile at fatalism - Title contains ambiguous buttsex | |
Skippping free! dj - splash honey! - Title contains ambiguous buttsex | |
Skippping free! dj - summer beast - Title contains ambiguous buttsex |
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
// Scrub Status | |
if (value < 1) | |
{ | |
value = 1; | |
} | |
// Pro Status | |
value = max(1, value); |
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
# You need to learn and master class and instance variables and moethods. | |
# Read these | |
# | |
# http://www.railstips.org/blog/archives/2009/05/11/class-and-instance-methods-in-ruby/ -- Methods | |
# http://www.railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/ -- Variables | |
# | |
require 'sequel' # Have to require this if we want to use Sequel | |
class Account |
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
filter_key = "Ford" | |
store.keys.each do | key | | |
next if key == filter_key | |
store.delete key | |
end | |
# Or if you're feeling fancy | |
store.delete_if { |key, value| key != filter_key } |
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
import threading | |
import time | |
def cool_function(): | |
print "Herro!" | |
if __name__ == "__main__": | |
thread_limit = 5 | |
while 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
x = "name" | |
puts "Good Morning Sir," | |
print " What is your name? " | |
puts " Morning \"#{name}\" " | |
x = x.split "" | |
puts x | |
x = x.join "" | |
puts x | |
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
asdfasdf |
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
%div{:align => 'center'} | |
- if not @error_message.nil? | |
%p.error= "<b>ERROR:</b> #{@error_message}" | |
%form{:action => '/stalk_item'} | |
%input{:type => 'text', | |
:autofocus => '1', | |
:name => 'search_text', | |
:placeholder => 'Paste item URL here.', | |
:value => 'http://www.amiami.com/top/detail/detail?scode=FIG-MOE-3475', |
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
amiami.rb -- | |
class AmiAmi < FigureWatch::Adapter | |
def item_data(item_url) | |
# Initialize item object | |
item = FigureWatch::Item.new | |
item.seller = "AmiAmi" | |
item.item_url = item_url |
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
int x, y, width, height; | |
x = cardImage.size.width * 0.09; // 14% of the card image's width | |
y = cardImage.size.height * 0.05; // 8.5% of the card image's height | |
width = cardImage.size.width * 0.83; // 61.5% of the card image's width | |
height = cardImage.size.height * 0.85; // 7% of the card image's height | |
CGRect name_crop_rect = CGRectMake(x, y, width, height); | |
UIImage *name_image = [cardImage croppedImage:name_crop_rect]; |