Skip to content

Instantly share code, notes, and snippets.

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
// Scrub Status
if (value < 1)
{
value = 1;
}
// Pro Status
value = max(1, value);
# 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
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 }
import threading
import time
def cool_function():
print "Herro!"
if __name__ == "__main__":
thread_limit = 5
while True:
x = "name"
puts "Good Morning Sir,"
print " What is your name? "
puts " Morning \"#{name}\" "
x = x.split ""
puts x
x = x.join ""
puts x
%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',
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
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];