Batteries911
Oscar Correa: oscar@batteries911.com
Requerimientos
- ios
- objc
- swift (no es necesario saberlo)
- uikit
const Hapi = require('@hapi/hapi'); | |
const MongoClient = require('mongodb').MongoClient; | |
const server = Hapi.server({ | |
port: 3000, | |
debug: { | |
request: ['*'] | |
} | |
}); |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
next unless %w[NonSwift42Pod].include? target.name | |
target.build_configurations.each do |config| | |
config.build_settings["SWIFT_VERSION"] = "4.0" | |
end | |
end | |
end |
// | |
// BaseGeolocable.swift | |
// | |
// Created by Juan Felipe Alvarez Saldarriaga on 11/11/16. | |
// | |
import Foundation | |
import CoreLocation | |
protocol BaseGeolocable: class, CLLocationManagerDelegate { |
// objc's continue method signature: - (AWSTask *)continueWithBlock:(AWSContinuationBlock)block; | |
// swift translate it as: .continue(block: (AWSTask<AWSCognitoIdentityUserPoolSignUpResponse>) -> Any?) | |
// error: Ambiguous use of 'continue' | |
pool.signUp(username, | |
password: password, | |
userAttributes: attrs, | |
validationData: nil) | |
.continue { (task) -> Any? in | |
} |
Oscar Correa: oscar@batteries911.com
Oscar Correa: oscar@batteries911.com
A tab completion script that works for Bash. Relies on the BSD md5
command on Mac and md5sum
on Linux, so as long as you have one of those two commands, this should work.
$ gradle [TAB]
html2canvas(document.getElementById("an_element_id"), { | |
onrendered: function(canvas) { | |
var img = canvas.toDataURL("image/png"); | |
$.post("http://blah.com", {image_data: img}, function (data, textStatus, jqXHR) { | |
console.log(arguments); | |
}); | |
} | |
}); |