Skip to content

Instantly share code, notes, and snippets.

View Chudesnov's full-sized avatar

Alexander Chudesnov Chudesnov

View GitHub Profile
@davidhund
davidhund / visually-hidden.css
Last active August 30, 2024 17:03
Hide visually, show for AT
/**
* = Visually Hide text
*
* Text remains accessible to AT such as Screen Readers
* Updated version:
* Taken from http://hugogiraudel.com/2016/10/13/css-hide-and-seek/
*
* ------------------------------------------------------------------------- */
.visually-hidden {
border: 0 !important;
@dfrencham
dfrencham / nifty-list-item-view.html
Created July 17, 2015 03:52
Knockout 3.3 Nested Components
<div style="border:1px solid blue; margin: 5px; padding: 5px;">
<label data-bind="text: labelText"></label>
<input type="text" />
</div>
@mistakster
mistakster / webpack.config.js
Created July 9, 2015 16:23
Webpack configuration file
/**
* Build for production:
* $ NODE_ENV=production webpack
*
* Build for staging or development mode
* $ webpack
*
* Run app server in dev mode and use Hot Module Replacement
* $ NODE_ENV=webpack nodemon --watch ./app index.js
*
@nolandc
nolandc / gsb.sh
Last active June 7, 2017 09:35
Git select-branch
list=$(git branch --list | grep -v \*)
declare -a branches=($list)
echo "Branches: "
for i in "${!branches[@]}"; do
printf "%s\t%s\n" "[$i]" "${branches[$i]}";
done
printf "Enter the number of the branch you'd like to switch to: "
@jpawlowski
jpawlowski / brew-sync.sh
Last active September 26, 2023 19:54
Sync Homebrew installations between Macs via Dropbox
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*