Skip to content

Instantly share code, notes, and snippets.

View engelfrost's full-sized avatar

Josef Engelfrost engelfrost

View GitHub Profile
@engelfrost
engelfrost / facebook_job.rb
Created May 11, 2011 14:07
Job for fetching Facebook checkins though Fb_Graph
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')
@engelfrost
engelfrost / diversity-aliases.sh
Last active February 24, 2017 13:29
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}" "https://git.diversity.io/textalk-webshop-native-components/$repo"` == "200" ]]
then
group="textalk-webshop-native-components"
@engelfrost
engelfrost / 10-tabs.hbs
Created December 5, 2018 10:01
Example of pseudo-pattern not being built
<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 / LICENSE
Last active September 2, 2020 11:15
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: