Confira o post dessa pen no CodePen.
By Larissa Surano. License.
| (function() { | |
| var script, | |
| scripts = document.getElementsByTagName('script')[0]; | |
| function load(url) { | |
| script = document.createElement('script'); | |
| script.async = true; | |
| script.src = url; | |
| scripts.parentNode.insertBefore(script, scripts); | 
| <?php | |
| session_start(); // Sessao do php deve estar ativa | |
| // datetimezone | |
| date_default_timezone_set('America/Sao_Paulo'); | |
| // autoloader gerado pelo composer | |
| require_once "vendor/autoload.php"; | |
| // configurar APP_ID e SECRET | 
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote | 
| import Foundation | |
| let config = NSURLSessionConfiguration.defaultSessionConfiguration() | |
| let userPasswordString = "[email protected]:password" | |
| let userPasswordData = userPasswordString.dataUsingEncoding(NSUTF8StringEncoding) | |
| let base64EncodedCredential = userPasswordData!.base64EncodedStringWithOptions(nil) | |
| let authString = "Basic \(base64EncodedCredential)" | |
| config.HTTPAdditionalHeaders = ["Authorization" : authString] | |
| let session = NSURLSession(configuration: config) | 
| // Other sources: http://swiftdeveloperblog.com/send-http-post-request-example-using-swift-and-php/ | |
| // Create request | |
| let baseUrl = "http://www.ocrwebservice.com/restservices/processDocument", | |
| params = "?language=english&gettext=true&outputformat=txt", | |
| requestUrl = NSURL(string: "\(baseUrl)\(params)"), | |
| request = NSMutableURLRequest(URL:requestUrl!) | |
| request.HTTPMethod = "POST"; | |
| request.HTTPBodyStream = NSInputStream(fileAtPath: "[/YOUR/FILE/PATH/IMAGE.jpg]") | |
| server { | |
| # Listen on port 81 | |
| listen 81; | |
| # Server name being used (exact name, wildcards or regular expression) | |
| # server_name phpmyadmin.my; | |
| root /usr/share/phpmyadmin; | 
| { | |
| "name": "gestaoponto-frontend", | |
| "version": "1.0.0", | |
| "description": "GPO - Gestão do Ponto", | |
| "scripts": { | |
| "build": "rimraf dist && webpack --bail --progress --profile", | |
| "server": "webpack-dev-server --history-api-fallback --inline --progress --host 0.0.0.0 --port 3000", | |
| "test": "karma start", | |
| "test-watch": "karma start --auto-watch --no-single-run", | |
| "start": "npm run server" | 
Confira o post dessa pen no CodePen.
By Larissa Surano. License.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Web Components</title> | |
| <style> | |
| body { | |
| font-family: 'Helvetica Neue'; | |
| } | |
| </style> | 
| var db = mongoose.connect('mongodb://localhost:27017/DB'); | |
| // In middleware | |
| app.use(function (req, res, next) { | |
| // action after response | |
| var afterResponse = function() { | |
| logger.info({req: req}, "End request"); | |
| // any other clean ups |