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
git.mydomain.com { | |
root * /usr/share/my-git-storage | |
reverse_proxy unix//run/fcgiwrap.socket { | |
transport fastcgi { | |
env SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend | |
env GIT_PROJECT_ROOT /usr/share/my-git-storage | |
env PATH_INFO {path} | |
env GIT_HTTP_EXPORT_ALL "" | |
} | |
} |
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
html | |
body | |
hr | |
abbr[title] | |
small | |
sub | |
sup | |
table | |
::-moz-focus-inner | |
:-moz-focusring |
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
# this tells Make to run 'make help' if the user runs 'make' | |
# without this, Make would use the first target as the default | |
.DEFAULT_GOAL := help | |
# here we have a simple way of outputting documentation | |
# the @-sign tells Make to not output the command before running it | |
help: | |
@echo 'Available commands:' | |
@echo -e 'dev \t\t - \t run the development environment | |
@echo -e 'prod \t\t - \t build for production |
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
const setupMQ = (queryString) => (set) => { | |
const query = window.matchMedia(queryString) | |
const callback = (e) => set(e.matches) | |
query.addListener(callback) | |
callback(query) | |
return (query) => query.removeListener(callback) | |
} | |
// example use |
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
Partnerweb* | |
Home* | |
Providers -> Provider List | |
Provider List | |
Provider -> Provider | |
Provider | |
Contact Details | |
Edit Contact Details -> Edit Provider | |
Product Filter List -> Product Filters | |
Offer List -> Offer |
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 | |
cd "$(dirname "$(readlink -f "$0")")" | |
SEDBIN="gsed" | |
command -v gsed >/dev/null 2>&1 || { SEDBIN="sed"; } | |
$SEDBIN --version >/dev/null 2>&1 || { echo >&2 "GNU-sed required but not installed. Maybe run: brew install gnu-sed"; exit 1; } | |
PROC="./node_modules/prettier/bin/prettier.js" | |
DIR="src/main/javascript" |
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 easeInOutQuart( t ) { | |
const t1 = t - 1 | |
return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * t1 * t1 * t1 * t1 | |
} | |
function smoothScroll(el, to, duration) { | |
var initial = $(window).scrollTop() | |
var dest = to - initial | |
var start = null | |
function step (timestamp) { | |
if (!start) start = timestamp |
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
set nocp | |
call plug#begin('~/.vim/plugged') | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-repeat' | |
Plug 'tpope/vim-endwise' | |
Plug 'tpope/vim-haml', { 'for': 'haml' } | |
Plug 'tpope/vim-commentary' | |
Plug 'pearofducks/vim-mkdn', { 'for': 'markdown' } |
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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<title>schemer</title> | |
<style> | |
.circle { height: 10px; width: 10px; border-radius: 10px; margin-left: 5px; } | |
.color-control { display: flex; align-items: center;} | |
</style> | |
</head> | |
<body> |
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
if [[ $(/usr/bin/xcode-select -p &>/dev/null; /bin/echo $?) == 2 ]]; then | |
cmd_line_tools_temp_file="/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress" | |
touch "$cmd_line_tools_temp_file" | |
cmd_line_tools=$(softwareupdate -l | awk '/\*\ Command Line Tools/ { $1=$1;print }' | tail -1 | sed 's/^[[ \t]]*//;s/[[ \t]]*$//;s/*//' | cut -c 2-) | |
softwareupdate -i "$cmd_line_tools" --verbose | |
if [[ $(/usr/bin/xcode-select -p &>/dev/null; /bin/echo $?) != 2 ]]; then | |
echo "CLT installed." | |
if [[ -f "$cmd_line_tools_temp_file" ]]; then | |
rm "$cmd_line_tools_temp_file" | |
fi |
NewerOlder