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
| /** | |
| * scrap | |
| * v0.0.1 | |
| * | |
| * 07/15/13 | |
| */ | |
| (function() { | |
| var _, root, Scrap, Backbone; |
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 http = require('http'), | |
| setup = require('./setup'), | |
| card_catalog = require('cardcatalog'), | |
| obj; | |
| var setupFn = new setup(); | |
| setupFn.on('ready', function(res) { | |
| obj = res; | |
| }); |
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
| if (typeof define !== 'function') { var define = require('amdefine')(module); } | |
| define(function() { | |
| return { | |
| indexOf : function(arr, item) { | |
| return arr.indexOf( item ); | |
| }, | |
| sum : function(arr) { | |
| var sum = 0; |
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 'net/http' | |
| require 'uri' | |
| require 'rexml/document' | |
| uri = URI.parse("ADD YOUR INSTAPAPER RSS FEED LINK HERE") | |
| data = Net::HTTP.get_response(uri) | |
| doc = REXML::Document.new(data.body) | |
| doc.elements.each('rss/channel/item') do |s| | |
| puts s[1][0] |
NewerOlder