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
<h4> [[[email protected]]]:[[[email protected]]] </h4> |
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
SIMPLX Widgeteer 0.8.4.kb | |
UPDATE 120116 10:59 | |
Made a nested foreach loop to handle placeholders with the same parent reference. | |
UPDATE 120115 16:59 | |
Changed so that the default chunkMatchingSelector is "", which is more likely to be the case. |
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
function hasSupport(elem, attribute) { | |
return attribute in elem; | |
} | |
$('body').delegate('textarea', 'focus input change keydown keyup', function(e) { | |
var $textArea = $(this); | |
if (!hasSupport($textArea[0], 'placeholder')) { | |
var placeholderText = $textArea.attr("placeholder"); | |
if (this.value === $textArea.data("placeholder")) { |
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
var placeholderSupport = ("placeholder" in document.createElement("input")); | |
var setPlaceHolderText = function(elem) { | |
var $textarea = $(elem); | |
var placeholderText = $textarea.attr("placeholder"); | |
$textarea.data("placeholder", placeholderText); | |
if (placeholderText.length > 0) { | |
$textarea.val(placeholderText) | |
.addClass('blur'); | |
} |
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
[core] | |
excludesfile = /Users/_user_/.gitignore_global | |
[fetch] | |
prune = true | |
[alias] | |
# log outputs | |
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cgreen\\ [%cn]" --decorate --date=short | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ [%cn]" --decorate --numstat | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ [%cn]" --decorate | |
# fancy log output |
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
window.open("","stats_debugger","width=600,height=600,location=0,menubar=0,status=1,toolbar=0,resizable=1,scrollbars=1").document.write("<script language=\"JavaScript\" src=\"https://sitecatalyst.omniture.com/sc_tools/stats_debugger.html\"></"+"script>" + "<script language=\"JavaScript\">window.focus();</script>"); |
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
bundle exec jekyll serve --drafts --config _config.yml,_config_dev.yml --watch |
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
title: Baker's GitHub Repo DEVELOPMENT | |
url: http://localhost:4000 | |
baseurl: "" |
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
// Problem: Rotate an array of n elements to the right by k steps. | |
// For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. | |
// How many different ways do you know to solve this problem? | |
var array = [1,2,3,4,5,6,7]; | |
var result = [5,6,7,1,2,3,4]; | |
// Solution 1 - Intermediate Array | |
function rotate(nums, k) { | |
var result = [], |
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
var charCodes= { | |
"a": ". _", | |
"b": "_ . . .", | |
"c": "_ . _ .", | |
"d": "_ . .", | |
"e": ".", | |
"f": ". . _ .", | |
"g": "_ _ .", | |
"h": ". . . .", | |
"i": ". .", |
OlderNewer