This file contains 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
# LOL!!1 | |
alias wtf='dmesg' | |
alias onoz='cat /var/log/errors.log' | |
alias rtfm='man' | |
alias visible='echo' | |
alias invisible='cat' | |
alias moar='more' |
This file contains 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
/** | |
* <strong>This implementation does not use lazy loading and performs | |
* <b>extremely</b> bad when the number of items is large! Do not use unless | |
* you absolutely have to!</strong> | |
* <p> | |
* {@inheritDoc } | |
*/ | |
public int indexOfId(Object itemId) { | |
/* | |
* This is intentionally an ugly implementation! This method should not |
This file contains 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="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
This file contains 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
select | |
i.[object_id], | |
i.[index_id], | |
OBJECT_SCHEMA_NAME( i.object_id, DB_ID() ) as SchemaName, | |
t.[name] as TableName, | |
i.[name] as IndexName, | |
( | |
case i.[fill_factor] | |
when 0 then 100 | |
else i.fill_factor |
This file contains 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
.right-buttons { | |
bottom: 0; | |
margin-bottom: 20px; | |
position: fixed; | |
right: 0; | |
} |
This file contains 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
''******************************************** | |
''* VGA 128x96 64-Color Bitmap Driver v1.0 * | |
''* Author: Andy Schenk * | |
''* See end of file for terms of use. * | |
''******************************************** | |
''* based on Chip Gracey's 512x384 Bitmap driver | |
'' | |
'' This object generates a 128x96 pixel bitmap, signaled as 1024x768 VGA. | |
'' Each pixel is one byte, so the entire bitmap requires 12 kbytes, | |
'' Pixel memory is arranged left-to-right then top-to-bottom. |
This file contains 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
$('#readme').insertBefore('.file-navigation'); |
This file contains 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
# how to save a record | |
# console... | |
key = "your key" | |
secret = "your secret" | |
# Chattanooga lat/lon = 35.0456297 / -85.3096801 | |
client = Simplegeo.new( key, secret, "yourlayer" ) | |
records = Simplegeo::Records.new( client ) |
This file contains 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
<% title '<script language="javascript">alert("See, this works");</script>' %> |
This file contains 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
class ThirdpartyController < ApplicationController | |
before_filter :authenticate_user! | |
before_filter :get_consumer_info, :except => [ :index ] | |
def index | |
session[:request_token] = nil | |
end | |
def tripit | |
gem 'oauth' |
OlderNewer