Skip to content

Instantly share code, notes, and snippets.

View jorkas's full-sized avatar
👋
Hey there 💯

Joakim Olander jorkas

👋
Hey there 💯
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
@jorkas
jorkas / readme.md
Last active December 24, 2015 22:19
Current playing song for widget for Dashing

Current playing song widget for Dashing

Preview

Playing song

Usage

  1. Add trackprogress.js to your javascript directory
  2. Add widget code to a dashboard
  3. Copy the html, coffee and scss file to a "playingsong" directory
  4. Update the songtitle
@jorkas
jorkas / gist:6533344
Last active December 22, 2015 21:29
Microformats validation
<?xml version="1.0" encoding="utf-8"?>
<microformats from="http://newsdesk.se/pressroom/newsdesk/contact_person/view/peter-ingman-administration-foeretagsledning-14" title="Newsdesk - Peter Ingman (Administration/företagsledning) - Newsdesk">
<description>Peter Ingman är en av grundarna och VD för Newsdesk.</description>
<hcard>
<email>pingman@newsdesk.se</email>
<fn>Peter Ingman</fn>
<org>Newsdesk</org>
<role>VD</role>
<tel>
<type>Work</type>
@jorkas
jorkas / blog_demo_delayed_image_loading.html
Created June 6, 2011 05:42
Delayed Image Loading With HTML5 Data Attributes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script>
$(window).load(function(){
$("a[data-gravatar-url]").each(function(){
$(this).html('<img src="'+ $(this).data("gravatarUrl") +'" alt="'+ $(this).text() +'">');
});
)
'MediaMonitor creating Media Monitor accounts should not have available profiles if profiles more than two' FAILED
expected accepting_more_profiles? to return true, got false
/Users/joakim/.rvm/gems/ruby-1.8.7-p302@newsdesk/gems/rspec-1.3.1/lib/spec/expectations/fail_with.rb:41:in `fail_with'
/Users/joakim/.rvm/gems/ruby-1.8.7-p302@newsdesk/gems/rspec-1.3.1/lib/spec/expectations/handler.rb:21:in `handle_matcher'
/Users/joakim/.rvm/gems/ruby-1.8.7-p302@newsdesk/gems/rspec-1.3.1/lib/spec/expectations/extensions/kernel.rb:27:in `should'
./spec/models/media_monitor_spec.rb:39:
/Users/joakim/.rvm/gems/ruby-1.8.7-p302@newsdesk/gems/rspec-1.3.1/lib/spec/example/example_methods.rb:40:in `instance_eval'
/Users/joakim/.rvm/gems/ruby-1.8.7-p302@newsdesk/gems/rspec-1.3.1/lib/spec/example/example_methods.rb:40:in `execute'
/Users/joakim/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/timeout.rb:53:in `timeout'
ed.contentCSS.push(url+'/css/content_rawembed.css');
@jorkas
jorkas / TinyMCE-Raw-Embed-Plugin-Init.js
Created April 12, 2011 08:48
TinyMCE Raw Embed Plugin Init
tinyMCE.init({
// General options
mode : 'specific_textareas',
editor_selector : 'editor',
theme : "advanced",
plugins : "inlinepopups,paste,rawembed",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,bullist,|,rawembed,code",
theme_advanced_buttons2 : "",