This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { "key": "ctrl+l", "command": "workbench.action.editor.changeLanguageMode" }, | |
| { "key": "ctrl+numpad_divide", "command": "editor.action.commentLine", "when": "editorTextFocus" } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sqlplus -s | |
| SQL> connect hr@oracle.com/hr | |
| SQL> UPDATE employees SET current = false WHERE email = "Igor.Minar@oracle.com"; | |
| SQL> COMMIT; | |
| SQL> disconnect | |
| SQL> exit | |
| $ curl -X POST -H "Content-Type: application/json" \ | |
| -d '{ "firstName":"Igor", "lastName":"Minar"}' \ | |
| http://google.com/employee/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git shortlog -sn --no-merges |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Array.prototype.push = function(x) { | |
| return [].concat(this, x); | |
| }; | |
| Array.prototype.pop = function() { | |
| return this.slice(0, this.length-1); | |
| }; | |
| Array.prototype.unshift = function(x) { | |
| return [].concat(x, this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "files.exclude": { | |
| "**/*.js": { | |
| "when": "$(basename).ts" | |
| }, | |
| "**/*.js.map": true | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Write a JavaScript function that takes a number n and returns the sum of the even numbers from 1 to n. | |
| */ | |
| function firstFunc(n) { | |
| let result = 0; | |
| for (let index = 1; index <= n; index++) { | |
| if (index % 2 === 0) { | |
| result += index; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Configuración de SystemJS para Angular 2 | |
| */ | |
| (function(global) { | |
| // el map le dice a System dónde buscar las cosas que ha de cargar | |
| var map = { | |
| 'app': 'app', // 'dist', | |
| '@angular': 'node_modules/@angular', | |
| 'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api', | |
| 'rxjs': 'node_modules/rxjs' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "globalDependencies": { | |
| "core-js": "registry:dt/core-js#0.0.0+20160317120654", | |
| "jasmine": "registry:dt/jasmine#2.2.0+20160505161446", | |
| "node": "registry:dt/node#6.0.0+20160613154055" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Original method | |
| var object = { | |
| method: function (x, y) { | |
| return x+y; | |
| } | |
| } | |
| // Add operations before or after! | |
| object.method = (function (original) { | |
| return function (x, y) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # by Flavio Corpa | |
| # get last two commits date from git log (in seconds) | |
| arr=($(git log -2 --author="flaviocorpa@gmail.com" --format=%at)) | |
| # convert them to hours (with decimals) | |
| hours=$(awk "BEGIN {printf \"%.2f\",$(((arr[0]-arr[1])/3600))}") |