$ git push heroku production:master
> -----> Heroku receiving push
> -----> PHP app detected
> -----> Bundling Apache v2.2.19
> -----> Bundling PHP v5.3.6
> -----> Discovering process types
> Procfile declares types -> (none)
// From this: | |
upload: function(req, res, params) { | |
var that = this; | |
this.helpers.user.checkIfUserIsLogged(req, res, '/login', function(userIsLogged) { | |
var userId = req.session.userId; | |
that.helpers.s3.upload(params.files, userId, function(fileName) { | |
var element = params.post.element; | |
element.userId = userId; |
Large Object Motions: | |
( | |
) | |
{ | |
} | |
[[ | |
[] | |
][ | |
]] | |
[m |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#InstallKeybdHook | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; OPTIONAL: For those who use Home/End more than PgUp/PgDown, this flips their use with the Fn key. | |
; If you want the buttons to function as they are, add a semicolon (;) to the beginning of each line below. | |
Home::PgUp | |
End::PgDn | |
PgUp::Home |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install
will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
// Simple proxy/forwarding server for when you don't want to have to add CORS during development. | |
// Usage: node proxy.js | |
// Open browser and navigate to http://localhost:9100/[url] | |
// Example: http://localhost:9100/http://www.google.com | |
// This is *NOT* for anything outside local development. It has zero error handling among other glaring problems. | |
// This started as code I grabbed from this SO question: http://stackoverflow.com/a/13472952/670023 |
Open Conemu
Open Settings -> Tasks or go to new tab button -> Setup tasks.
Click +
to add a new task
Enter the name as Git Bash
or whatever you like
Task parameters:
/icon "C:\Program Files (x86)\Git\etc\git.ico" /dir "C:\_git"
Command:
func getAvgTime(results: Array<NSDate>) -> String { | |
var totalHours = 0.0 | |
var totalMinutes = 0.0 | |
var avgTime = "" | |
// sum all hours & minutes together | |
for result in results { | |
let hours = Double(NSCalendar.currentCalendar().component(NSCalendarUnit.Hour, fromDate: result)) | |
let minutes = Double(NSCalendar.currentCalendar().component(NSCalendarUnit.Minute, fromDate: result)) | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// init VPN manager | |
self.vpnManager = [NEVPNManager sharedManager]; | |
// load config from perference | |
[_vpnManager loadFromPreferencesWithCompletionHandler:^(NSError *error) { |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name ForceLog | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogFailures | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogResourceBinds | |
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogPath |