This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Depends on the "xml-simple" and "net-http-digest_auth" gems... | |
For Rails 2: | |
config/environment.rb: | |
Rails::Initializer.run do |config| | |
... | |
config.gem "xml-simple", :lib => "xmlsimple" | |
config.gem "net-http-digest_auth", :lib => "net/http/digest_auth" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Device] | |
Vendor=Motorola | |
Product=CLIQ2/MB611 | |
AccessProtocol=storage | |
DeviceMatch=usb:22b8:41d9; | |
[Media] | |
OutputFormats=OutputFormats=audio/mpeg;audio/x-ms-wma;audio/3gpp;audio/mp4;audio/aac;audio/vnd.rn-realaudio;audio/x-midi;audio/x-wav;application/ogg | |
[storage] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When /^(?:|I )double-click the card$/ do | |
snippet = <<-EOS | |
$(".card[data-id='1']").dblclick(); | |
EOS | |
page.execute_script( snippet ) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Tango Palette: http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines#Color_Palette | |
//Licensed as Public Domain | |
//SASS'd by James Mason ([email protected]) | |
//Butter | |
$light_butter: #fce94f | |
$butter: #edd400 | |
$dark_butter: #c4a000 | |
//Orange |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<style> | |
.monospace { | |
font-family: Menlo, Monaco, "Droid Sans Mono", Consolas, "Lucida Console", "Courier New", monospace; | |
} | |
.monospace_without_menlo { | |
font-family: Monaco, "Droid Sans Mono", Consolas, "Lucida Console", "Courier New", monospace; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py | |
index 13d77f0..0d8983b 100644 | |
--- a/gnomemusic/grilo.py | |
+++ b/gnomemusic/grilo.py | |
@@ -87,7 +87,7 @@ class Grilo(GObject.GObject): | |
def populate_artists(self, offset, callback): | |
self.populate_items(Query.ARTISTS, offset, callback) | |
- def populate_albums(self, offset, callback, count=50): | |
+ def populate_albums(self, offset, callback, count=-1): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
00:00:00,000 --> 00:00:00,800 | |
Gravel. | |
2 | |
00:00:00,900 --> 00:00:01,900 | |
WARNING UNEXPECTED TAKEOFF | |
3 | |
00:00:02,000 --> 00:00:04,000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert a string in the expected format, into 16 bytes, emulating .Net's | |
# Guid constructor. | |
# "00000000-0000-0000-0000-000000000000" => | |
# [CLSCompliantAttribute(false)] | |
# public Guid( | |
# uint a, | |
# ushort b, | |
# ushort c, | |
# byte d, | |
# byte e, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def conference_date_string(conf) | |
startstr = "Unknown - " | |
endstr = "Unknown" | |
# When the conference in the same motn | |
if conf.start_date.month == conf.end_date.month and conf.start_date.year == conf.end_date.year | |
startstr = conf.start_date.strftime("%B %d - ") | |
endstr = conf.end_date.strftime("%d, %Y") | |
elsif conf.start_date.month != conf.end_date.month && conf.start_date.year == conf.end_date.year | |
startstr = conf.start_date.strftime("%B %d - ") | |
endstr = conf.end_date.strftime("%B %d, %Y") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="linuxtycooon-app"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |