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
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |
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
{ | |
"editor.fontSize": 13, | |
"editor.renderWhitespace": "selection", | |
"editor.cursorSurroundingLines": 5, | |
"editor.minimap.showSlider": "always", | |
"editor.scrollbar.verticalScrollbarSize": 10, | |
"editor.scrollbar.horizontalScrollbarSize": 10, | |
"explorer.confirmDragAndDrop": false, | |
"git.confirmSync": false, | |
"git.enableSmartCommit": 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
/*! | |
* Translator util | |
*/ | |
var Translator = { | |
data: {}, | |
__: function() { | |
var args = (arguments.length === 1) ? arguments[0] : arguments; |
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
/** | |
* Set and stringify local storage item(s) | |
* | |
* @param {(string|object)} key | |
* @param {*} value | |
*/ | |
window.setStorage = function(key, value) { | |
if (_.isObject(key)) { | |
_.each(key, function(value, key) { | |
localStorage.setItem(key, JSON.stringify(value)); |
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
<?php | |
/** | |
* Write log message | |
* | |
* @param string $msg Log message | |
* @param string $file Filename | |
* @param bool $append Append or overwrite file | |
*/ | |
function log_msg($msg, $file = 'application.log', $append = true) |