<root>
<cd>
<name>yes</name>
<description>foo</description>
</cd>
<dvd>
<name>shaun of the dead</name>
<description>zomromcom</description>
| // inspiration: https://github.com/damienklinnert/appdotnet | |
| var request = require('request'); | |
| foo = function(cb) { | |
| var opts = { uri: 'http://appd01:8111' }; | |
| request.get(opts, function(err ,resp, body) { | |
| if (err) { return cb(err); } | |
| return cb(null, resp, body); |
| /*jshint phantom: true, laxcomma: true*/ | |
| var system = require('system') | |
| ,page = require('webpage').create(); | |
| if (system.args.length === 1 || system.args.length < 3) { | |
| console.log('Try to pass some args when invoking this script!'); | |
| phantom.exit(); | |
| } | |
| var url = system.args[1]; |
| javascript : function iprl5() { | |
| var d = document, | |
| z = d.createElement('scr' + 'ipt'), | |
| b = d.body, | |
| l = d.location; | |
| try { | |
| if (!b) | |
| throw(0); | |
| d.title = '(Saving...) ' + d.title; | |
| z.setAttribute('src', l.protocol + '//www.instapaper.com/j/QtAlSskhaIQL?u=' + encodeURIComponent(l.href) + '&t=' + (new Date().getTime())); |
####how to add quotes around numbers
before.txt
123
456
789
####package.json
if you're getting deprecation warnings, check the date of the blog post you're copying code from. chances are you're referencing old module versions.
###when deploying code
if you find you're getting oddness when deploying code to your awesome paas (nodejitsu, heroku, etc). one of your modules is probably reacting to NODE_ENV specifically when it's absent or set to production.
the easiest way to reproduce the oddness is to run the code locally this way:
####how to ignore a duff certificate
curl -k https://cheaphosting.com
####how to HTTP POST json data and how to set headers
curl -H 'Content-Type: application/json' -X POST -d @stuff.json http://jsonapiserver.com
where @stuff.json is
if the table isn't local i.e. database link you'll need to create a local version to sniff
CREATE TABLE foo AS SELECT * FROM SCHEMA.TABLE@DBLINK.WORLD WHERE rownum < 11;
but surely this is enough? actually no, this will be a best guess by oracle.
if you need more control then the next bit of sql will allow you to tailor the schema create script without all the scripted guff that oracle likes to add.
SELECT DECODE(A.COLUMN_ID,1,'CREATE TABLE '
|| A.TABLE_NAME
####use mmalecki's dotfiles config
git submodule source: http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/
- mkdir ~/github
- cd ~/github
- git clone git://github.com/mmalecki/dotfiles.git
- cd dotfiles
- git submodule init
- git submodule update
.testcontainer {¬ max-width: 384px;¬ /* top, right, bot, left */¬ padding: 0px 15px 0px 15px;¬ margin-left: auto;¬ margin-right: auto;¬ background-color: green;¬ height: 5px;¬ }¬ .tleftblock {¬