Skip to content

Instantly share code, notes, and snippets.

Avatar
🍕

Charley Pugmire puglyfe

🍕
View GitHub Profile
@puglyfe
puglyfe / stylis+4.0.3.patch
Created Nov 23, 2020
Patchfile to make stylis v4.0.3 compatible with emotion 11
View stylis+4.0.3.patch
diff --git a/node_modules/stylis/dist/stylis.cjs.map b/node_modules/stylis/dist/stylis.cjs.map
deleted file mode 100644
index ba82d54..0000000
--- a/node_modules/stylis/dist/stylis.cjs.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"stylis.cjs","sources":["../src/Enum.js","../src/Utility.js","../src/Tokenizer.js","../src/Parser.js","../src/Prefixer.js","../src/Serializer.js","../src/Middleware.js"],"sourcesContent":["export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font
@puglyfe
puglyfe / .zshrc
Last active Apr 3, 2018
create a folder and cd to it in one command
View .zshrc
# Use: mkcd my-directory
function mkcd() {
if [ -n "$1" ]; then
mkdir "$1" && cd $_
else
echo "Must specify a directory to create"
fi
}
@puglyfe
puglyfe / big-text-directive.js
Last active Aug 29, 2015
Angular directive for BigText.js
View big-text-directive.js
// View Big Text on GitHub - https://github.com/zachleat/BigText
app.directive('bigText', function() {
return {
restrict: 'A',
link: function(scope, element, attr) {
return element.bigtext({
maxfontsize: attr.maxSize,
minfontsize: attr.minSize,
childSelector: attr.childSelector