First list all your installed NPM modules with:
$ npm list -g --depth=0 > installNPMModules.sh
Then you could just multiline edit or regex stuff from:
First list all your installed NPM modules with:
$ npm list -g --depth=0 > installNPMModules.sh
Then you could just multiline edit or regex stuff from:
First step, choose the authority. Decide if you are syncing from your app to stripe or from stripe to your app. Usually in most cases it works best to choose your own DB as the authority, then you update Stripe based on what is in your DB.
Store the plans in the DB, update those plans in response to events or hooks. The simplest hooks are just your auth flow, user registration, user subscribes etc. If you can, just manually add a call to stripe at every point where a plan changes. That will scale just fine for 90% of cases. But if you have a large app with a lot of contributors you will need to figure out a place/mental model where all the sync to Stripe code goes and how it works. Usually the best for it is some sort of events or job queue.
I found the best model for when you have to sync updates to another place is events. It scales a lot better. Otherwise eventually you end with all this spaghetti code and cron scripts keeping things in sync. You end up with all sorts of questions eventually like, if I
$ brew install rethinkdb
$ gem install angelo
$ gem install rethinkdb
You'll want something for testing:
$ npm install -g wscat
sudo wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz | |
tar -xzf ta-lib-0.4.0-src.tar.gz or sudo tar -xzf ta-lib-0.4.0-src.tar.gz | |
cd ta-lib/ | |
./configure LDFLAGS="-lm" -prexix="/usr/local" | |
make | |
sudo make install |
class DataBinder extends jQuery | |
pubSub: null | |
constructor: (objectid) -> | |
@pubSub = $ {} | |
attribute = "data-bind-#{objectid}" | |
message = "#{objectid}:change" | |
$(document).on "change", "[#{attribute}]", (event) => | |
$elem = $(event.target) |
project :orm => :mongomapper, :test => :rspec, :renderer => :slim | |
require_dependencies( | |
'puma', 'imperator', 'oj', 'multi_json', | |
# Assets | |
'sprockets', 'sprockets-sass', | |
'coffee-script', 'uglifier', | |
'padrino-pipeline', | |
.CodeMirror.cm-s-github | |
.CodeMirror-activeline-background | |
background: rgba(255, 255, 255, 0.031) | |
.CodeMirror-gutters | |
background: #f0f0f0x | |
border-right: 1px solid #4D4D4D | |
box-shadow: 0 10px 20px black | |
.CodeMirror-linenumber |
lgi = require 'lgi' | |
cario = lgi.cairo | |
Gtk = lgi.Gtk | |
class CairoSample | |
@size: 30 | |
new: () => | |
@window = Gtk.Window(title: 'cats', on_destroy: Gtk.main_quit) | |
@window\set_default_size(450, 550) |
#!/usr/bin/env ruby | |
require 'metadown' | |
require 'rest_client' | |
file_name = ARGV[0] | |
url = ARGV[1] | |
url ||= 'http://words.k2052.me/jots' | |
source = File.read(file_name) |