This file contains 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
/** | |
* Checkout bobbitt's base koi examples here: | |
* https://github.com/ericb/Koi/blob/master/examples.js | |
*/ | |
// use koi namespace to define a new object level ( this is basically if !tmplMethods, tmplMethods = {} ) | |
Koi.namespace('tmplMethods'); | |
// if there are methods used across a section of the application, you could nest deeper ( common ajax calls or something ) |
This file contains 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
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
// post demo | |
$.ajax({ | |
dataType: "json", | |
type: "post", |
This file contains 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
<a class="search_result_row even" href="http://store.steampowered.com/app/211160/?snr=1_7_7_230_150_24"> | |
<div class="col search_price"> $14.99 </div> | |
<div class="col search_type"> | |
<img src="http://cdn2.store.steampowered.com/public/images/ico/ico_type_app.gif"> | |
</div> | |
<div class="col search_metascore"></div> | |
<div class="col search_released"> Oct 17, 2012 </div> | |
<div class="col search_capsule"> | |
<img src="http://cdn2.steampowered.com/v/gfx/apps/211160/capsule_sm_120.jpg?t=1350669009" alt="Buy Viking: Battle for Asgard" width="120" height="45"> | |
</div> |
This file contains 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 'open-uri' | |
require 'nokogiri' | |
require 'cgi' | |
class SteamGameStrape | |
def initialize | |
@page = 1 | |
@url = "http://store.steampowered.com/search/results" | |
@user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22" | |
@row = 0 |
This file contains 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 'open-uri' | |
require 'nokogiri' | |
require 'cgi' | |
require 'json' | |
# UserGameScrape | |
# | |
# Usage: | |
# ugs = UserGameScrape.new | |
# games_tsv_string = ugs.games( steam_game_name ) |
This file contains 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
1 208480 480.5 Assassins Creed III | |
2 72850 279.7 The Elder Scrolls V: Skyrim | |
3 205100 273.1 Dishonored | |
4 35140 208.2 Batman: Arkham Asylum GOTY Edition | |
5 217790 71.5 Dogfight 1942 | |
6 8930 36.7 Sid Meiers Civilization V | |
7 24780 36.6 SimCity 4 Deluxe | |
8 620 17.2 Portal 2 | |
9 400 15.3 Portal | |
10 41500 8.8 Torchlight |
This file contains 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 'open-uri' | |
require 'nokogiri' | |
require 'cgi' | |
# UserSeeder class has one important method -> get_user | |
# all forum and discussion pagination should be automagic | |
class UserSeeder | |
def initialize | |
@forum = -1 # only access to new forum page increments before fetching, staring at -1 | |
@user_buffer = [] # user buffer holds the list of profile names |
This file contains 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
Pod::Spec.new do |s| | |
s.name = 'TestFlightSDK' | |
s.version = '1.1b3' | |
s.license = 'Commercial' | |
s.summary = 'TestFlightSDK for over-the-air beta testing and crash reporting.' | |
s.homepage = 'http://www.testflightapp.com' | |
s.author = { 'TestFlight' => 'support@testflightapp.com' } | |
s.source = { :http => 'https://d3fqheiq7nlyrx.cloudfront.net/sdk-downloads/TestFlightSDK1.1beta3.zip' } | |
s.description = 'TestFlightSDK for over-the-air beta testing and crash reporting.' | |
s.platform = :ios |
OlderNewer