some text some text some text some text some text
This file contains 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
# kubernetes - is an open source system for managing containerized | |
# applications across multiple hosts, providing basic mechanisms for | |
# deployment, maintenance, and scaling of applications. | |
# See: https://kubernetes.io | |
function __kubectl_no_command | |
set -l cmd (commandline -poc) | |
if not set -q cmd[2] | |
return 0 | |
end |
This file contains 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
javascript: (function() { function viewObserva(document) { let paywall = document.getElementsByClassName("mensaje_paywall"); for (let i = 0; i < paywall.length; i++) { paywall.item(i).remove(); } paywall = document.getElementsByClassName("mensaje_paywall2"); for (let i = 0; i < paywall.length; i++) { paywall.item(i).remove(); } let nota = document.getElementsByClassName("cuerpo"); for (let i = 0; i < nota.length; i++) { nota.item(i).classList.remove("fade"); } console.log("chupame la pija observador!") } viewObserva(document); })(); |
This file contains 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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
This file contains 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
Promise.resolve(1) | |
.then((x) => x + 1) | |
.then((x) => { throw new Error('My Error') }) | |
.catch(() => 1) | |
.then((x) => x + 1) | |
.then((x) => console.log(x)) | |
.catch(console.error) |
This file contains 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
# testing this | |
some text | |
## some other header | |
some more text some more text some more text some more text some more text some more text some more text some more text some more text some more text some more text some more text some more text | |
This file contains 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
function __git_fzf_is_in_git_repo | |
command -s -q git | |
and git rev-parse HEAD >/dev/null 2>&1 | |
end | |
function __git_fzf_git_status | |
__git_fzf_is_in_git_repo; or return | |
git -c color.status=always status --short | \ | |
fzf -m --ansi --preview 'git diff --color=always HEAD -- {-1} | head -500' | \ | |
cut -c4- | \ |
$ vagrant init jhcook/macos-sierra
$ vagrant up
(I got errors while starting the virtual machine, fixed it opening Virtualbox and editing the generated virtual machine's settings. I disabled nested pagination from the System -> Acceleration menu)
After that the vm booted without problems and I was able to successfully install xcode.
This file contains 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
var modelString = device.model; | |
var modelRegex = /\d+/g; | |
var isIPhone6PlusOrHigher = false; | |
var match = modelString.match(modelRegex); | |
if (match != null) { | |
var major = match[0], minor = match[1]; | |
if (major == 7) { | |
if (minor != 2) { | |
// iphone 6 plus | |
isIPhone6PlusOrHigher = true; |
This file contains 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
var Person = function (name) { | |
this.name = name; | |
} | |
Person.prototype = { | |
sayHi: function() { | |
console.log('Hi, my name is ' + this.name); | |
}, | |
parentClassMethod: function() { | |
console.log('Method from Person class called on ' + this.name); |