The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: February 13th 2016
- Original post
| alias qrgen='function _qrgen(){ | |
| local tmpfile="${HOME}/Downloads/qrcode.png" | |
| qrencode -o "$tmpfile" "$*" | |
| osascript -e "set the clipboard to (read (POSIX file \"${tmpfile}\") as JPEG picture)" | |
| rm "$tmpfile" | |
| }; _qrgen' |
| #!/bin/sh | |
| . "$(dirname "$0")/_/husky.sh" | |
| echo "Running Prettier on changed files..." | |
| # Get a list of changed files since the last commit | |
| changed_files=$(git diff --name-only --diff-filter=d HEAD @{push} "*.js" "*.jsx" "*.ts" "*.tsx" "*.json" "*.css" "*.scss" "*.md") | |
| # Run Prettier on changed files | |
| if [ -n "$changed_files" ]; then |
| #!/bin/bash | |
| # Save this script as setup_mac.sh, make it executable with chmod +x ./setup_mac.sh, and run it with ./setup_mac.sh | |
| POWERLEVEL10K_PATH="/opt/homebrew/share/powerlevel10k/powerlevel10k.zsh-theme" | |
| # Set up Git | |
| git_name=$(git config --global --get user.name) | |
| git_email=$(git config --global --get user.email) | |
| git_push_default=$(git config --global --get push.default) |
| function cloneNodeRemoveEvents(el, withChildren) { | |
| if (withChildren) { | |
| el.parentNode.replaceChild(el.cloneNode(true), el); | |
| } | |
| else { | |
| var newEl = el.cloneNode(false); | |
| while (el.hasChildNodes()) newEl.appendChild(el.firstChild); | |
| el.parentNode.replaceChild(newEl, el); | |
| } |
| #Usage: search_blocks.sh SITE TERM | |
| #Where SITE is chart or press and TERM is whatever you're looking for. | |
| #!/bin/bash | |
| ssh lucid 'mysql '$1'_drupal -e "SELECT bid, info, CONCAT('\''https://zach.office.lucid'$1'.com/pages/admin/structure/block/manage/block/'\'', bid, '\''/configure'\'') as url FROM block_custom WHERE body LIKE '\''%'$2'%'\''\G"' |
| <div class="ad"> | |
| <h3 dir="ltr">Speaking of mobile apps, Lucidchart has one!</h3> | |
| <h3 dir="ltr">Check it out!</h3> | |
| <div class="buttons"> | |
| <a class="orange-btn" href="https://itunes.apple.com/us/app/lucidchart-flowchart-diagram/id611543423" style="margin-right:1rem;" target="_blank">Lucidchart for iOS</a> | |
| <a class="orange-btn" href="https://play.google.com/store/apps/details?id=com.lucidchart.android.chart" target="_blank">Lucidchart for Android</a> | |
| </div> | |
| </div> |
| // found here http://forums.shopify.com/categories/2/posts/29259 | |
| var getOrdinal = function(n) { | |
| var s=["th","st","nd","rd"], | |
| v=n%100; | |
| return n+(s[(v-20)%10]||s[v]||s[0]); | |
| } |
| #parallax-section::before { | |
| position: fixed; | |
| content: ''; | |
| } |