Skip to content

Instantly share code, notes, and snippets.

View alexkilgour's full-sized avatar
:octocat:

Alex Kilgour alexkilgour

:octocat:
View GitHub Profile
@alexkilgour
alexkilgour / SgomlHJ0.png
Last active October 18, 2021 08:09
Tech Test Readme
SgomlHJ0.png
@alexkilgour
alexkilgour / kidstodo.md
Last active May 21, 2023 22:54
Stuff for kids to do online during lockdown

Online resources:

  • BrainPop
  • Curiosity Stream
  • Tynker
  • Outschool
  • Udemy
  • iReady
  • Beast Academy (Math)
  • Khan Academy
  • Creative Bug
@alexkilgour
alexkilgour / oscarfolders.md
Last active June 21, 2019 08:48
Oscar frontend folder structure
@alexkilgour
alexkilgour / sharedtemplates.md
Last active May 24, 2018 13:57
Dynamic shared component templates with handlebars

Create a template that includes handlebars expressions that all the addition of classes

<!-- button.hbs -->
<a id="{{id}}" data-component="{{jsHook}}" class="c-button {{utilityClasses}} {{extensionClasses}}">
  {{text}}
</a>

You can then extend the component within your app by either adding a utility class, or by extending the component with a modifier

@alexkilgour
alexkilgour / sncss.md
Last active August 16, 2017 12:36
How we write CSS

How we write CSS

Our approach to writing CSS aims to provide a framework for working that allows individual teams the flexibility to make project appropriate decisions within a company wide strcuture. By following a consistent approach across teams we aim to make it easier to move developers around and allow for the easy evolution of our approach within a large company.

We advocate a componentised approach that is designed for scale, is based on SASS (using the SCSS syntax), follows the BEM Methodology, and borrows elements from OOCSS, Utility Classes, and ITCSS.

Architecture

The architecture is split into a series of 'levels' with each level representing a folder that contains our SASS split out into different

Keybase proof

I hereby claim:

  • I am alexkilgour on github.
  • I am howlingmad (https://keybase.io/howlingmad) on keybase.
  • I have a public key whose fingerprint is 2BCE 7576 861D 7D10 F373 18DD 3CCD EE9B 867E C911

To claim this, I am signing this object:

@alexkilgour
alexkilgour / _html_entities.scss
Created March 23, 2016 15:53 — forked from apisandipas/_html_entities.scss
HTML Entities map - The pseudo-element 'content' property doesnt accept normal (&raquo;) style HTML entities. These variables below easy the pain of looking up the HEX codes...
/**
* The pseudo-element 'content' property doesnt accept normal (&raquo;) style
* HTML entities. These variables below easy the pain of looking up the HEX codes...
*
* Referenced from http://www.danshort.com/HTMLentities/
*
* TODO: Add all the other entities? Worth it? Some day? Maybe?
*/
// Punctuation
@alexkilgour
alexkilgour / gist:de4936a2b2942407fab5
Created November 30, 2015 11:35 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@alexkilgour
alexkilgour / javascript-hooks.md
Last active October 26, 2015 16:48
A proposal for how we work with client side javascript

Component javascript hooks

Accessing DOM elements

This should be added to any DOM element you need to access via javascript
Should be added as part of the html not using .data()
Should never be removed or edited
Should be used only to access the element(s)
Names should be lowercase, hyphen separated, descriptive

@alexkilgour
alexkilgour / rounding
Created September 11, 2014 09:52
Rounding a number down to a specified number of decimal places
// rounding down to specified decimal places
var round = function(value, decimals) {
return Math.floor(value * Math.pow(10,decimals)) / Math.pow(10,decimals);
}