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
#!/bin/bash | |
# Begin Standard 'imports' | |
set -e | |
set -o pipefail | |
gray="\\e[37m" | |
blue="\\e[36m" | |
red="\\e[31m" |
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
--- node_modules/bulma/sass/helpers/spacing.sass 1985-10-26 04:15:00.000000000 -0400 | |
+++ patches/spacing.sass 2021-07-07 16:32:03.000000000 -0400 | |
@@ -1,8 +1,8 @@ | |
.is-marginless | |
- margin: 0 !important | |
+ margin: 0 !important | |
.is-paddingless | |
- padding: 0 !important | |
+ padding: 0 !important |
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 debounce(func, wait = 20, immediate = true) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
var later = function() { | |
timeout = null; | |
if (!immediate) func.apply(context, args); | |
}; | |
var now = immediate && !timeout; | |
clearTimeout(timeout); |
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
SELECT TABLE_NAME, table_rows, data_length, index_length, | |
round(((data_length + index_length) / 1024 / 1024),2) "Size in MB" | |
FROM information_schema.TABLES WHERE table_schema = "schema_name" | |
ORDER BY (data_length + index_length) DESC; |
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 myNamespace = (function () { | |
var myPrivateVar = 0; | |
var myPrivateMethod = function (someText) { | |
console.log(someText); }; | |
return { | |
myPublicVar: "foo", | |
myPublicFunction: function (bar) { | |
myPrivateVar++; | |
myPrivateMethod(bar); | |
} }; |
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 inheritPrototype(childObject, parentObject){ | |
var parentCopy = Object.create(parentObject.prototype); | |
parentCopy.constructor = childObject; | |
childObject.prototype = parentCopy; | |
} |
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 singleton = function() { | |
var privateVariable; | |
function privateFunction(x) { | |
...privateVariable... | |
} | |
return { | |
first method: function (a, b) { | |
...privateVariable... | |
}, | |
second method: function (a, b) { |
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
# To keep the Homebrew itself up-to-date, and fetch the newest version from GitHub use: | |
brew update | |
# After updating the brew, check which formulae have an updated version available, display detailed version information to see if you have more than one older version laying around: | |
brew outdated --verbose | |
# Remove broken symlinks | |
brew prune |
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
/** | |
* Self-executing JavaScript pattern | |
*/ | |
// undefined = true; works in javascript | |
// passing undefined as a param guarantees undefined is “undefined” | |
(function(window, document, undefined) { | |
// ... | |
})(this, document); // this = window |
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
AL|Alabama | |
AK|Alaska | |
AZ|Arizona | |
AR|Arkansas | |
CA|California | |
CO|Colorado | |
CT|Connecticut | |
DE|Delaware | |
DC|District Of Columbia | |
FL|Florida |
NewerOlder