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
| fs = require 'fs' | |
| {exec} = require 'child_process' | |
| util = require 'util' | |
| browserify = require 'browserify' | |
| colors = require 'colors' | |
| UglifyJS = require "uglify-js" | |
| mold = require 'mold-source-map' | |
| path = require 'path' | |
| jsRoot = path.join(__dirname) |
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
| fs = require 'fs' | |
| {exec} = require 'child_process' | |
| util = require 'util' | |
| browserify = require 'browserify' | |
| colors = require 'colors' | |
| UglifyJS = require "uglify-js" | |
| mold = require 'mold-source-map' | |
| path = require 'path' | |
| jsRoot = path.join(__dirname) |
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
| http = require 'http' | |
| util = require 'util' | |
| net = require 'net' | |
| pg = require 'pg' | |
| conString = "postgres://qrs:qrs@localhost/qrs" | |
| httpServer = http.Server (req, res) -> | |
| pg.connect conString, (err, client, done) -> |
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'), | |
| async = require('async'), | |
| printIP = function(cbs, data) { | |
| console.log("Your IP address: " + data.ip); | |
| }, | |
| yellIP = function(cbs, data) { | |
| console.log("OI!!! IP!!! " + data.ip); | |
| }, |
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
| http = require 'http' | |
| yellIP = (callbacks, data) -> | |
| console.log "OI!! YOUR IP IS #{data.ip}!!!" | |
| printIP = (callbacks, data) -> | |
| console.log "Your IP address: #{data.ip}" | |
| parseJSON = (callbacks, string) -> | |
| callbacks.shift()(callbacks, JSON.parse(string)) |
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
| module.exports = | |
| errback: (cargs..., {callbacks, error: [eb, args...]}) -> | |
| eb(args..., cargs..., {callbacks: callbacks, error: [eb, args...]}) | |
| callback: (cargs..., {callbacks, error}) -> | |
| [cb, args...] = callbacks.shift() | |
| cb(args..., cargs..., {callbacks: callbacks, error: error}) |
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
| http = require 'http' | |
| pg = require('pg').native | |
| Promise = require 'bluebird' | |
| reportError = (res, err, chains) -> | |
| res.writeHead 500, | |
| 'content-type': 'application/json' | |
| res.write JSON.stringify err | |
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
| SELECT "businesses_business"."id", "businesses_business"."user_id", "businesses_business"."slug", "businesses_business"."name", "businesses_business"."business_type_id", "businesses_business"."street", "businesses_business"."additional", "businesses_business"."town", "businesses_business"."county", "businesses_business"."postcode_id", "businesses_business"."phone_number", "businesses_business"."fax_number", "businesses_business"."email", "businesses_business"."website", "businesses_business"."strapline", "businesses_business"."description", "businesses_business"."active", "businesses_business"."deleted", "businesses_business"."activation_code", "businesses_business"."created_on", "businesses_business"."account_confirmed", "businesses_business"."preview", "businesses_business"."paid", "businesses_business"."last_updated", "businesses_business"."copy_id", "businesses_business"."logo", "businesses_business"."security_reference", "businesses_business"."video", "businesses_business"."embed_url", "businesses_busine |
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
| <html> | |
| <head> | |
| <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootswatch/3.0.3/cosmo/bootstrap.min.css"> | |
| </head> | |
| <body> | |
| <div id="container" class="container"> | |
| </div> | |
| <script asrc="http://code.jquery.com/jquery-2.0.3.min.js"></script> | |
| <script asrc="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> |
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
| <html> | |
| <head> | |
| <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootswatch/3.0.3/cosmo/bootstrap.min.css"> | |
| </head> | |
| <body> | |
| <div id="container" class="container"> | |
| </div> | |
| <script asrc="http://code.jquery.com/jquery-2.0.3.min.js"></script> | |
| <script asrc="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> |