Skip to content

Instantly share code, notes, and snippets.

View nocash's full-sized avatar

Beau Dacious nocash

View GitHub Profile
@nocash
nocash / test.html
Created October 30, 2019 23:37 — forked from CannonballSkippy/test.html
Basic markup test content for typography
<h1>Testing display of HTML elements</h1>
<h2>This is 2nd level heading</h2>
<p>This is a test paragraph.</p>
<h3>This is 3rd level heading</h3>
<p>This is a test paragraph.</p>
<h4>This is 4th level heading</h4>
<p>This is a test paragraph.</p>
<h5>This is 5th level heading</h5>
<p>This is a test paragraph.</p>
@nocash
nocash / .prettierrc
Created September 27, 2019 21:37
configs
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
#!/bin/bash -e
ack_args=$@
git_ref=$( git which-master )
pattern='TODO|NOTE|XXX|placehold\.it|TK|tbd|console\.log'
function committed_files {
git diff ${git_ref}..HEAD --diff-filter=ACMX -G"$pattern" --name-only
}

https://techblog.bozho.net/gdpr-practical-guide-developers/

The rights of the user/client (referred to as “data subject” in the regulation) that I think are relevant for developers are:

  • the right to erasure (the right to be forgotten/deleted from the system)
  • right to restriction of processing (you still keep the data, but mark it as “restricted” and don’t touch it without further consent by the user),
  • the right to data portability (the ability to export one’s data in a machine-readable format),
  • the right to rectification (the ability to get personal data fixed),
  • the right to be informed (getting human-readable information, rather than long terms and conditions),
  • the right of access (the user should be able to see all the data you have about them).
#!/bin/bash
relaxing=false
if [ "$1" = "--relax" ]; then
relaxing=true
shift
fi
iteration=0
rspec_opts="$@"
@nocash
nocash / rem-conversion.rb
Created May 18, 2017 20:36
A script to convert rem values in files from one base font size to another. Works for me but ymmv.
#!/usr/bin/env ruby
require 'fileutils'
REM_PATTERN = /([\d.-]+)rem\b/
current_size, target_size, *file_paths = ARGV
def trim_num(num)
num.to_f == num.to_i ?
@nocash
nocash / .gitconfig
Last active March 31, 2017 20:00
Easily create branch names from pasted story titles.
[alias]
br- = "!f() { git branch $(dasherize \"$@\"); }; f"
cob- = "!f() { git checkout -b $(dasherize \"$@\"); }; f"
#!/bin/bash
set -e
current=`git symbolic-ref --quiet --short HEAD`
exclude="^(master|develop)"
git fetch origin
git checkout master
git reset --hard origin/master
git branch --merged origin/master \
@nocash
nocash / README.md
Created February 26, 2016 17:08
Adjusting Open File Limits in Yosemite