Skip to content

Instantly share code, notes, and snippets.


Josef Engelfrost engelfrost

View GitHub Profile
engelfrost / 10-tabs.hbs
Created Dec 5, 2018
Example of pseudo-pattern not being built
View 10-tabs.hbs
<ul class="Tabs">
{{#each tabs}}
<li class="Tabs__tab{{#if selected}} state-selected{{/if}}">
<a class="Tabs__link" href="{{url}}">{{title}}</a>
<!-- TODO: depend on Menu and List -->
engelfrost /
Last active Feb 24, 2017
Clone and set up Diversity components
# Guess what group the project belongs to
function _smart-clone() {
local result_name=$1
local repo=$2
local dest=$3
local group
if [[ `curl --silent --head --output /dev/null -w "%{http_code}" "$repo"` == "200" ]]
engelfrost / LICENSE
Last active Sep 2, 2020
Fake localStorage. Useful for Safari Private Browsing and browsers that don't implement localStorage.
The MIT License (MIT)
Copyright (c) 2015 Textalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
engelfrost / facebook_job.rb
Created May 11, 2011
Job for fetching Facebook checkins though Fb_Graph
View facebook_job.rb
class FacebookJob
def initialize
def perform
fb_auths = Authentication.where(:provider => 'facebook')