brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| import Alamofire | |
| func makeGetCallWithAlamofire() { | |
| let todoEndpoint: String = "https://jsonplaceholder.typicode.com/todos/1" | |
| Alamofire.request(todoEndpoint) | |
| .responseJSON { response in | |
| // check for errors | |
| guard response.result.error == nil else { | |
| // got an error in getting the data, need to handle it | |
| print("error calling GET on /todos/1") |
| func makeGetCall() { | |
| // Set up the URL request | |
| let todoEndpoint: String = "https://jsonplaceholder.typicode.com/todos/1" | |
| guard let url = URL(string: todoEndpoint) else { | |
| print("Error: cannot create URL") | |
| return | |
| } | |
| let urlRequest = URLRequest(url: url) | |
| // set up the session |
| #!/usr/bin/env python | |
| """Convert an SVG file to a PNG file.""" | |
| from argparse import ArgumentParser | |
| import subprocess | |
| import os.path | |
| def main(): |
| var debug = process.env.NODE_ENV !== "production"; | |
| var webpack = require('webpack'); | |
| module.exports = { | |
| context: __dirname, | |
| devtool: debug ? "inline-sourcemap" : false, | |
| entry: "./js/scripts.js", | |
| output: { | |
| path: __dirname + "/js", | |
| filename: "scripts.min.js" |
| // Commented the call to cssmin as folows | |
| /* | |
| grunt.registerTask('prod', [ | |
| 'compileAssets', | |
| 'concat', | |
| 'uglify', | |
| 'cssmin', | |
| 'sails-linker:prodJs', | |
| 'sails-linker:prodStyles', | |
| 'sails-linker:devTpl', |