Darian Shimy dshimy

View create.js
1 2 3 4 5 6 7 8 9
// W3C/Safari
 
var n = new Notification('Notification Title', {'body': 'Details on the notification...'});
 
// WebKit
 
var n = webkitNotifications.createNotification('not_used.png', 'Notification Title', 'Details on the notification...');
 
n.show();
View scoped_id.rb
1 2 3 4 5 6 7 8 9 10
# First create a column on the parent object to keep track of the next scoped_id:
 
class CreateProjects < ActiveRecord::Migration
def change
create_table :projects do |t|
...
t.integer :bugs_sequence
...
end
end
View apache.conf
1 2 3 4 5
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
View 1_ar_without_callbacks.rb
1 2 3 4 5 6 7 8 9 10
class Issue < ActiveRecord::Base
 
def project=(p)
write_attribute :project_id, p # doesn't work
# Code that does not belong
if p.security(:private)
p.audit_log :change, self
end
end
View index.html
1 2 3 4 5 6 7 8 9 10
<html>
<head>
<title>Web Notifications</title>
<script type="text/javascript">
 
var send_notification = function() {
 
if (window.webkitNotifications && navigator.userAgent.indexOf("Chrome") > -1) {
 
console.log("Web Notifications are supported with the WebKit API");
View index.html
1 2 3 4 5 6 7 8 9
<html>
<head>
<title>Sample Grid</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript">
 
$(document).ready(function() {
 
var Grid = function() {
View notify.html
1 2 3 4 5 6 7 8 9 10
<html>
<head>
<title>Web Notifications</title>
<script type="text/javascript">
 
var send_notification = function() {
 
if (window.webkitNotifications && navigator.userAgent.indexOf("Chrome") > -1) {
 
console.log("Web Notifications are supported with the WebKit API");
View composer.json
1 2 3 4 5
{
"require": {
"dshimy/about-me": "*"
}
}
View dep_install.sh
1 2 3
$ cd vendor/Chipmunk-4.1.0/ruby
$ ruby extconf.rb
$ sudo make install
View example.rb
1 2 3 4 5 6 7 8 9 10
# A memory efficient deduplication class used in cases where a
# duplicate object can only occur within n objects of each other.
class MemoryDedup
# Returns a new deduper.
#
# == Options
# * <tt>:size</tt> - the number of objects to store in the cache
def initialize(options = {})
@size = options{:size} || 1000
Something went wrong with that request. Please try again.