Skip to content

Instantly share code, notes, and snippets.

Avatar

Josef Engelfrost engelfrost

View GitHub Profile
@engelfrost
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>
</li>
{{/each}}
<!-- TODO: depend on Menu and List -->
</ul>
@engelfrost
engelfrost / diversity-aliases.sh
Last active Feb 24, 2017
Clone and set up Diversity components
View diversity-aliases.sh
# 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}" "https://git.diversity.io/textalk-webshop-native-components/$repo"` == "200" ]]
then
group="textalk-webshop-native-components"
@engelfrost
engelfrost / LICENSE
Last active Aug 5, 2020
Fake localStorage. Useful for Safari Private Browsing and browsers that don't implement localStorage.
View LICENSE
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
engelfrost / facebook_job.rb
Created May 11, 2011
Job for fetching Facebook checkins though Fb_Graph
View facebook_job.rb
class FacebookJob
def initialize
# DebugMailer.email('initialize').deliver
end
def perform
# DebugMailer.email('facebook').deliver
begin
# DebugMailer.email('beginning').deliver
fb_auths = Authentication.where(:provider => 'facebook')
You can’t perform that action at this time.