###Icons
| Name | Size |
|---|---|
| iphone_2x | 120x120 |
| iphone_3x | 180x180 |
| ipad | 76x76 |
| ipad_2x | 152x152 |
| android_ldpi | 36x36 |
| android_mdpi | 48x48 |
| echo "Creating an SSH key for you..." | |
| ssh-keygen -t rsa | |
| echo "Please add this public key to Github \n" | |
| echo "https://github.com/account/ssh \n" | |
| read -p "Press [Enter] key after this..." | |
| echo "Installing xcode-stuff" | |
| xcode-select --install |
| # This gist illustrates how to create and execute a payment with Paypal using their REST API. | |
| # For additional informations, check the documentation: https://developer.paypal.com/docs/api/ | |
| # Note 1: I assume that you have already created a developer account for Paypal and an application. | |
| # To test that your code is working, use the sandbox accounts. | |
| # https://developer.paypal.com/webapps/developer/applications/accounts | |
| # Note 2: we will not use the Paypal REST API SDK package for Node.js | |
| # https://github.com/paypal/rest-api-sdk-nodejs |
###Icons
| Name | Size |
|---|---|
| iphone_2x | 120x120 |
| iphone_3x | 180x180 |
| ipad | 76x76 |
| ipad_2x | 152x152 |
| android_ldpi | 36x36 |
| android_mdpi | 48x48 |
| //events - a super-basic Javascript (publish subscribe) pattern | |
| var events = { | |
| events: {}, | |
| on: function (eventName, fn) { | |
| this.events[eventName] = this.events[eventName] || []; | |
| this.events[eventName].push(fn); | |
| }, | |
| off: function(eventName, fn) { | |
| if (this.events[eventName]) { |
If you just want to fix the issue quickly, scroll down to the "solution" section below.
If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you may see an error like this:
$ npm update npm -g
| import json, re, shlex, urllib.request | |
| watch = [] | |
| def getPrice(item): | |
| listings = json.loads(urllib.request.urlopen(makeUrl(item)).read().decode("utf-8"))["listinginfo"] | |
| lowest = None | |
| for id, obj in list(listings.items()): | |
| try: | |
| price = obj["converted_price"] |