Skip to content

Instantly share code, notes, and snippets.

View gl2748's full-sized avatar

Iain Maitland gl2748

View GitHub Profile
@gl2748
gl2748 / yezhovshchina.sh
Created November 26, 2017 01:22
Condenser Component Counter
#!/bin/bash
declare -A components
for file in $1/*.jsx
do
name=${file##*/}
base=${name%.jsx}
cd ./src
count=$(grep -r -o "<$base" | wc -l)
@gl2748
gl2748 / component_counter.sh
Created November 24, 2017 01:15
bash script to audit components.
#!/bin/bash
declare -A components
for file in $1/*.jsx
do
name=${file##*/}
base=${name%.jsx}
cd ./src
count=$(grep -r -o "<$base" | wc -l)
@gl2748
gl2748 / vscode_settings.MD
Last active October 29, 2017 17:33
My vs code settings, visual studio code.
{
    "editor.tabSize": 2,
    "editor.renderWhitespace": "boundary",
    "window.zoomLevel": 2,
    "editor.fontFamily": "'Source Code Pro', Menlo, Monaco, 'Courier New', monospace",
    "editor.fontSize": 12,
    "editor.insertSpaces": false,
    "editor.minimap.enabled": false,
 "editor.quickSuggestionsDelay": 100,
@gl2748
gl2748 / userSettings.json
Created October 24, 2017 15:27
vs code settings.
{
"editor.tabSize": 2,
"editor.renderWhitespace": "boundary",
"window.zoomLevel": 0,
"editor.fontFamily": "'Source Code Pro', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 12,
"editor.insertSpaces": false,
"editor.minimap.enabled": false,
"editor.quickSuggestionsDelay": 100,
"editor.multiCursorModifier": "ctrlCmd",
@gl2748
gl2748 / lpt.md
Created July 22, 2017 16:02
protips

Guntram Bechtold says: July 22, 2017 at 7:56 am Its a pretty interesting Question you’re facing. Personally I think there are three things that block me from being productive:

  1. Not knowing the goal: Things can look crisp but in fact the goal is blurry. Toxic.
  2. Not seeing the goal: Getting the point but no reason why to go there.
  3. Conciously underestimating the effort: You know that its more work but you got to or want to squeeze it anyways. Lack of clarity for me results in lack of empathy.

Therefore the following things appear to work for me from time to time.

  1. Recognizing that one of problems 1-3 exist
  2. Forcing myself to take 5 Minutes and a postit to at least make some random plan
Implement fixes for issues #171(vids in mediabar), #59(position of zergnet block on slideshow landing page) #172(correct position of sharethis icons) and #132(sprites)
@gl2748
gl2748 / responsive sprites
Created January 18, 2016 03:56
Responsive sprites
.at_robbreport #block-rr-header-rr-header ul.header_links li.social a {
display: inline-block;
width: 19%;
margin-right: 3%;
max-width: 32px;
.stretchy {
position: relative;
@gl2748
gl2748 / morning work
Created January 13, 2016 23:33
AM Work
get the sharethis icons into the right place - robb report tv content type.
Make a scaled down sprite... for responsive.
@gl2748
gl2748 / keybase.md
Created December 29, 2015 19:05
keybase.md

Keybase proof

I hereby claim:

  • I am gl2748 on github.
  • I am iainmaitland (https://keybase.io/iainmaitland) on keybase.
  • I have a public key ASD6eGeebGectkwYB1nklng47i3nMKXvYMPq_cWnPydlUAo

To claim this, I am signing this object: