I hereby claim:
- I am myrne on github.
- I am myrne (https://keybase.io/myrne) on keybase.
- I have a public key ASAUr8kSHeNe9UkrQfrbRhu2hUThpfJHMYWVpw7Fe29ngQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Generated by CommonJS Everywhere 0.9.2 | |
(function (global) { | |
function require(file, parentModule) { | |
if ({}.hasOwnProperty.call(require.cache, file)) | |
return require.cache[file]; | |
var resolved = require.resolve(file); | |
if (!resolved) | |
throw new Error('Failed to resolve module ' + file); | |
var module$ = { | |
id: file, |
require "setimmediate" | |
module.exports = class SwiftPromise | |
constructor: (fn)-> | |
@state = undefined | |
@finalState = undefined | |
@deferreds = [] | |
@callbacks = [] | |
resultCB = (err, result, forceError=false) => | |
return unless @state is undefined |
makePromise = require "make-promise" | |
module.exports = eachSeries = (values, iterator, options ={}) -> | |
i = 0 | |
makePromise (cb) -> | |
resolver = (i) -> | |
(result) -> | |
options.handleResult? result, i | |
iterate() | |
iterate = -> | |
if (i >= values.length) or options.stopEarly?() |
makePromise = require "make-promise" | |
module.exports = each = (values, iterator, options = {}) -> | |
makePromise (cb) -> | |
return cb null, options.getFinalValue?() unless values.length | |
try promises = (iterator value for value in values) | |
catch error then return cb error | |
stopped = false | |
numRemaining = promises.length | |
resolver = (index) -> | |
return (value) -> |
kFSEventStreamCreateFlagNone = 0x00000000 | |
kFSEventStreamCreateFlagUseCFTypes = 0x00000001 | |
kFSEventStreamCreateFlagNoDefer = 0x00000002 | |
kFSEventStreamCreateFlagWatchRoot = 0x00000004 | |
kFSEventStreamCreateFlagIgnoreSelf = 0x00000008 | |
kFSEventStreamCreateFlagFileEvents = 0x00000010 |
#! /bin/sh | |
sed -E -e 's_[(]?(/[^:]*/([^ ]*)):([0-9]+):([0-9]*)[)]?_[\2:\3:\4] txmt://open/?url=file://\1\&line=\3\&column=\4_g' |
require 'aws/s3' | |
require 'heroku' | |
require 'heroku/command' | |
require 'heroku/command/auth' | |
require 'heroku/command/pgbackups' | |
task :cron do | |
class Heroku::Auth | |
def self.client | |
Heroku::Client.new ENV['heroku_login'], ENV['heroku_passwd'] |
# By Oto Brglez - @otobrglez | |
# Rake task. Put in your (lib/tasks) folder of your Rails application | |
# Execute with "rake dropbox:backup" | |
# Configuration must be inside config/dropbox.yml file | |
namespace :dropbox do | |
desc "Backup production database to dropbox" | |
task :backup do | |