Skip to content

Instantly share code, notes, and snippets.

View jastuccio's full-sized avatar
😊
living the dream

jastuccio jastuccio

😊
living the dream
View GitHub Profile
@jastuccio
jastuccio / change_osx_default_keyboard
Created March 26, 2015 21:52
alternate osx default keyboard after reboot
# http://superuser.com/questions/815723/alternate-osx-default-keyboard-after-reboot
# sets a different keyboard as the default in OSX
sudo cp ~/Library/Preferences/com.apple.HIToolbox.plist /Library/Preferences
// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
@jastuccio
jastuccio / Install with HomeBrew
Last active July 18, 2016 21:05
Apps I install using Homebrew
brew install mackup
brew install tree
ansible libpng node php56 unixodbc
freetype libxml2 nvm php70 vv
gdbm libyaml openssl phpmd wget
gettext mackup pcre readline zsh
@jastuccio
jastuccio / .zshrc
Created May 4, 2016 14:03
DRAFT .zshrc file
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#########################################################################################
# Customize to your needs... #
#########################################################################################
@jastuccio
jastuccio / 0_reuse_code.js
Created September 4, 2016 22:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jastuccio
jastuccio / pipe-to-log.txt
Created October 3, 2016 15:29
pipe npm install to log.txt
// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
@jastuccio
jastuccio / roman-numeral-converter.js
Created October 18, 2016 16:39
Convert numbers into Roman Numerals using JavaScript
// use the function form of strict
function convert(num) {
var remainingValue = num;
var newRomanNumeral = "";
var romanNumerals = [{
numeral: "M",
value: 1000
}, {
@jastuccio
jastuccio / image-attribution
Last active December 26, 2018 05:31
HTML code for image attribution in my WordPress site
<!-- Attribution-ShareAlike License -->
<small>
Feature image by<a title="image name" class="feature-image-credit" href="" target="_blank">flickr username</a>
<a title="Attribution-ShareAlike License" class="cc-license" href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank" rel="nofollow"><img src="" /></a>
</small>
<!-- public domain License -->
<img alt="" src="" title="" img="">
@jastuccio
jastuccio / index.html
Last active December 5, 2016 00:55
JavaScript Challenge
<div>The total time of the movies is: <span id="demo"></span>
</div>
// Type into terminal
yarn add bundle-buddy-webpack-plugin webpack-bundle-analyzer --dev
// webpack.bundlebuddy.js
const webpackBundleBuddy = require("bundle-buddy-webpack-plugin")
module.exports = {
plugins: [
new webpackBundleBuddy({sam: true})
]