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 fizzbuzz(n){return((!(n%3)?'Fizz':'')+(!(n%5)?'Buzz':''))||n;} |
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
# Install WildFly 8.2.0 Final to /usr/local/opt/wildfly-as/libexec | |
brew install wildfly-as | |
# Add environment variables to ~/.bash_profile | |
export JBOSS_HOME=/usr/local/opt/wildfly-as/libexec | |
export PATH=${PATH}:${JBOSS_HOME}/bin | |
# Start WildFly on Port 8080 and 9990 | |
standalone.sh |
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
// Precondition to execute a changelog | |
<preConditions onFail="MARK_RAN"> | |
<changeSetExecuted id="1" author="peter" changeLogFile="details/dbchangelog-01.00.00.00.xml"/> | |
<columnExists tableName="user" columnName="username" /> | |
</preConditions> | |
// Precondition to execute a changelog when the specific changelog hasn't been executed yet | |
<preConditions onFail="MARK_RAN"> | |
<not> | |
<changeSetExecuted id="1" author="peter" changeLogFile="details/dbchangelog-01.00.00.00.xml"/> |
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
# Check for Sencha Cmd Updates | |
sencha upgrade --check | |
# Update Sencha Cmd to the latest version | |
sencha upgrade | |
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(){var a='.celebrate-pride{position: fixed;z-index: 0;width: 100%;height: 100vh;background:-moz-linear-gradient(top,#ff3e18 0,#ff3e18 16%,#fc9a00 16%,#fc9a00 33%,#ffd800 33%,#ffd800 49%,#39ea7c 49%,#39ea7c 66%,#39ea7c 66%,#0bb2ff 66%,#0bb2ff 83%,#985aff 83%,#985aff 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ff3e18),color-stop(16%,#ff3e18),color-stop(16%,#fc9a00),color-stop(33%,#fc9a00),color-stop(33%,#ffd800),color-stop(49%,#ffd800),color-stop(49%,#39ea7c),color-stop(66%,#39ea7c),color-stop(66%,#39ea7c),color-stop(66%,#0bb2ff),color-stop(83%,#0bb2ff),color-stop(83%,#985aff),color-stop(100%,#985aff))!important;background:-webkit-linear-gradient(top,#ff3e18 0,#ff3e18 16%,#fc9a00 16%,#fc9a00 33%,#ffd800 33%,#ffd800 49%,#39ea7c 49%,#39ea7c 66%,#39ea7c 66%,#0bb2ff 66%,#0bb2ff 83%,#985aff 83%,#985aff 100%)!important;background:-o-linear-gradient(top,#ff3e18 0,#ff3e18 16%,#fc9a00 16%,#fc9a00 33%,#ffd800 33%,#ffd800 49%,#39ea7c 49%,#39ea7c 66%,#39ea7c 66% |
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
// Open a file with the default App for this kind of filetype | |
open README.txt |
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
-- Start Transaction update a row and rollback transaction | |
BEGIN TRANSACTION | |
UPDATE user SET username='peter' WHERE id=2 | |
ROLLBACK TRANSACTION | |
-- Start Transaction update a row and commit transaction | |
BEGIN TRANSACTION | |
UPDATE user SET username='peter' WHERE id=2 | |
COMMIT TRANSACTION |
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
# List running machines | |
VBoxManage list runningvms | |
# Start VM | |
vagrant up | |
# Shutting down and remove the VM (all changes will be lost) | |
vagrant destroy | |
# SSH into a running VM |
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
// Activate ES5 Strict-Mode in whole file | |
"use strict"; | |
... | |
// Activate ES5 Strict-Mode just for a specific function | |
function() { | |
"use strict"; | |
... | |
} |
OlderNewer