Skip to content

Instantly share code, notes, and snippets.

View ajmalafif's full-sized avatar
💻

Ajmal Afif ajmalafif

💻
View GitHub Profile
@bdno86
bdno86 / camphor.scss
Last active December 24, 2024 04:46
camphor
$camphor300:'d09GMgABAAAAAQ5UABIAAAAEn0QAAQ3tAAEZmQAAAAAAAAAAAAAAAAAAAAAAAAAAG4SkahzOKgZgFotgAIosCCIJgnMRCAqLlgCKvTwBNgIkA5lwE4GnDguZdAAEIAW7bwcgDHJb0WS0WUXZkokWaBHx4wKbY7TigANIU/t980QCGzI/IkCsdbqJZwY1ZOgWDngIamw3I43435Dd+zJ1kNmKVp/DvXNAwaNm//////////////////+/NZkMZ5cAl0CpbZ3oiwloFA5GyIWNzOYVLt1bpXPX+pABI2fo5rMZpgVYIzYqgxt92ajECqUKh2G9gaOCVRC23VSRVypHfbvb7wYcwEM25WArF0esm1yKzDixrJRdcBGtcpBZTFbFbIl8LIU4gWOnEdSITqkoGrHWJ8ywn9eVFWWk3lC6m07qp1TXntHaWp6ekYHLrFoyzOXYiQnn2kWX2zqMaFBTca25vHKndPhJV66HRhQzL9lB3OT20KGTXuFHu62wm1qzoV/iTnaiLdc8o/D7B+1O94BrjSE3cia6U1A5XNp0kHmUj8IMBaeiGaiNJV7b1csb0bq8EWYo2h1TuipR+7hmYjxeZsonGLNcmgsKp5EUDCEj9SvRyxX2uMUNfINmfNqglBYNNtjtNmdwWV2ly4uQKheyDyka2RTRoQ3IEfs+0BNcGJ4Z5AnmHNpFbCKW5PsXkAzJ6VVzzVMo0fwIUpQQT67itTNRE946/NxDashl9KuAFUbZ6yW91vObh+WAMZ1mQ1J4wotF6KXHuo65X6wSz406hW/T6XZMf/6W+HGYUxCDfhyjPaoMGcWccmbYM/H35NdHTOd79Jg0ho/BDBvRy2vcg8pHsv07UYiKrDFeqzL0Qk7qCkXLuukl2EKuR3xS6VtsLEaT0BfWoDYoQ1YvEjjT729XNMYoCX3j+2ApedBG/UHLOJ7AAnfPSqdmmePsY+522MpfPaf7kf6fIJMn0/4SE6PmuI3yjyeGjWn+1qj/ukf09DE

Auto-Didactism: Part 1 — Principles

I want to write a bit about how I've approached learning and how to learn effectively. I don't claim to be the world's foremost expert in learning but I've generalized my process to things like:

  • Fortune 100 R&D Engineering at a global leader — (Resume)
  • Handwalking — Watch me do stairs HERE
  • Web Development — (Github)
  • Zero to Backflip in 3 hours
  • Guitar self-accompaniment for songs
  • West Coast Swing (Just started with the GF!)
@Rich-Harris
Rich-Harris / service-workers.md
Last active June 23, 2025 19:36
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

@robotnealan
robotnealan / sites-available-ghost
Last active March 20, 2019 09:33
DigitalOcean LetsEncrypt Nginx Config
server {
listen 80;
listen [::]:80;
server_name robertnealan.com;
root /var/www/ghost/system/nginx-root;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
// generic reportOrders that shows your orders to the function
function reportOrders (minionOrders) {
if ( typeof minionOrders === "string"){
console.log(minionOrders);
}
else if ( typeof minionOrders === "object"){
for (var item in minionOrders) {
console.log(item + ": " + minionOrders[item]);
}
}
@DavidWells
DavidWells / font-loader.js
Created April 6, 2016 17:44
Adding Font Face observer to your site
import FontFaceObserver from './fontfaceobserver'
;(function (w) {
// if the class is already set, we're good.
if (w.document.documentElement.className.indexOf('fonts-loaded') > -1) {
return
}
var openSansFont = new w.FontFaceObserver('Open Sans', {
weight: 200
})
@brynary
brynary / ladder.md
Created March 24, 2016 04:05 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
@schikulski
schikulski / Replace Bootstrap with Foundation for Sage.md
Last active May 5, 2017 12:03
Replace Bootstrap with Foundation for Roots/Sage

How to replace Bootstrap with Foundation for Roots/Sage

1. Clone, clean and install

  • Clone repo: git clone https://github.com/roots/sage.git
  • Remove Bootstrap: bower uninstall bootstrap-sass -S
  • Install Foundation: bower install foundation -S
  • Install NPM packages: npm install

2. Add Foundation overrides to bower.json like this:

@hhayrapetyan
hhayrapetyan / related-products.liquid
Last active May 22, 2019 16:39
Shopify Venture Theme Related products snippet
# Define the model. All views will listen to this and update themselves, and will only have to deal with this model, instead of dealing with other views
# Extend BaseClass so we can use the on/emit bindings
class Model extends Framer.BaseClass
# Define properties that we want to observe like this so we can call `.index =` instead of .setIndex, though that works too
@define "index",
get: ()-> @_index || 0
set: (i) ->
@_index = i
# Emit the change so other things can listen to it (probably the views)
@emit "change:index"