This file contains 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/sh | |
set -o nounset | |
set -o errexit | |
usage(){ | |
echo "Usage: $0 X.Y.Z dev|test|staging|prod" | |
echo "" | |
echo "example: ./deploy.sh 1.1.3 prod" | |
echo "example: ./deploy.sh 1.2.0 dev" |
This file contains 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
[Adblock Plus 2.0] | |
! Title: Misc Widgets | |
*ko-fi.com/* | |
*jsdelivr.net/npm/cookieconsent* | |
https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js | |
*blogger.com/*comment_from_post_iframe.js | |
*blogger.com/*widgets.js | |
*sharethis.com/* |
This file contains 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
def generate_html_for_route(route_path) do | |
conn = Phoenix.ConnTest.build_conn() | |
conn = get(conn, route_path) | |
resp = html_response(conn, 200) | |
priv_static_path = | |
Path.join([ | |
:code.priv_dir(:dash_home), | |
"static", | |
route_path |
This file contains 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
@import "tailwindcss/base"; | |
@import "tailwindcss/components"; | |
@import "tailwindcss/utilities"; | |
@layer utilities { | |
.fgoto { | |
/* don't use this with <sup>... one or the other.*/ | |
font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; | |
top: -0.3em; vertical-align: super; | |
} |
This file contains 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
// https://tailwindcss.com/docs/customizing-colors#color-palette-reference | |
const colors = require('tailwindcss/colors') | |
const round = (num) => | |
num | |
.toFixed(7) | |
.replace(/(\.[0-9]+?)0+$/, '$1') | |
.replace(/\.0$/, '') | |
const rem = (px) => `${round(px / 16)}rem` | |
const em = (px, base) => `${round(px / base)}em` |
This file contains 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
@import "tailwindcss/base"; | |
@import "tailwindcss/components"; | |
@import "tailwindcss/utilities"; | |
/* Works on Firefox */ | |
pre { | |
scrollbar-color: #6B7280 #1f2937; | |
} | |
/* Works on Chrome, Edge, and Safari */ |
This file contains 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
@import "tailwindcss/base"; | |
@import "tailwindcss/components"; | |
@import "tailwindcss/utilities"; | |
/* I mostly use this for math like exponents and stuff */ | |
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } | |
sup { top: -0.3em; vertical-align: super;} | |
sub { bottom: -0.25em; vertical-align: sub;} |
This file contains 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
FROM elixir:1.11.2 AS build | |
## instll some dependencies (webpack basically) | |
RUN \ | |
apt-get update -y && \ | |
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ | |
apt-get install -y nodejs && node -v && npm -v | |
# Required environment variables passed in via --build-arg flags |
This file contains 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/sh | |
# Current as working as of 2012/4/17 | |
# Xcode 4.3.2 | |
PROJECT_ROOT="$HOME/SomeDirWhereYourProjectLives/XXXXXXXX" | |
WORKSPACE="$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace" | |
CONFIG="AdHoc" | |
SCHEME="XXXXXXXX" |
This file contains 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
// Package riak is an opinionated driver for the Riak datastore | |
// Developed against Riak 1.2 | |
// | |
// Design decisions were made to prioritize safety over absolute ease of use. | |
// This is a work in progress, but could be good starting point for your own custom driver | |
// Eventually, there will be a real repo. | |
// Also on the roadmap is protocol buffer support, multi-node clusters, better sibling | |
// resolution and even client-side CRDTs | |
// | |
// If you have any feedback, please let me know. |
NewerOlder