- GitHub Staff
- twitter.com/jurretweet
View release_notes.rb
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
require "octokit" | |
Octokit.configure do |c| | |
c.access_token = "YOUR_GITHUB_ACCESS_TOKEN", | |
c.auto_paginate = true | |
end | |
# get all comments from all issues | |
comments = Octokit.issues_comments("DefactoSoftware/CAPP11") |
View rails-ajax.diff
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
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js | |
index 5f3e9b6..8c515ad 100644 | |
--- a/app/assets/javascripts/application.js | |
+++ b/app/assets/javascripts/application.js | |
@@ -13,4 +13,4 @@ | |
//= require jquery | |
//= require jquery_ujs | |
//= require bootstrap | |
-//= require_tree . | |
\ No newline at end of file |
View gist:a1ade23f7b42e8c3ccd7
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
#!/bin/bash | |
formatted_time() { | |
local total_seconds=${1} | |
((hours=total_seconds/3600)) | |
((minutes=total_seconds%3600/60)) | |
((seconds=total_seconds%60)) | |
printf "%02d:%02d:%02d\n" $hours $minutes $seconds | |
} |
View chat.js
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
$(function () { | |
var $messages = $("#messages"); | |
var $messageInput = $("#message-input"); | |
var socket = new Phoenix.Socket("/ws"); | |
socket.join("rooms", "public", {}, function (channel) { | |
channel.on("new:message", function (message) { | |
console.log(message); | |
$messages.append("<li>" + message.content + "</li>"); | |
}); |
View decorator.rb
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 BaseDecorator | |
def initialize(source) | |
@source = source | |
end | |
def method_missing(method_key, *args, &block) | |
@source.send(method_key, *args, &block) | |
end | |
def respond_to_missing?(method_key, *args, &block) |
View gist:bcaee57b9a871bcd004e
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
### Keybase proof | |
I hereby claim: | |
* I am jurre on github. | |
* I am jurre (https://keybase.io/jurre) on keybase. | |
* I have a public key whose fingerprint is E2C5 A255 3185 7FB9 4C43 EB4B 199C 1AC1 4FA6 F5E3 | |
To claim this, I am signing this object: |
View application.css
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
/* | |
*= require_self | |
*/ | |
html, body { | |
background-color: #eee; | |
} | |
body { | |
padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */ | |
} |
View nl.yml
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
nl: | |
viewer: | |
comment_on_twitter: 'Reageer op Twitter' | |
older: 'Ouder' | |
newer: 'Nieuwer' | |
feed: 'Feed' | |
share: 'Deel' | |
close: 'Sluit' | |
next_post: 'Next Post' | |
previous_post: 'Volgende Post' |
View gist:6810338
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
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Base16/base16-default.dark.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 12.0, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" |
View set-local-ip.sh
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
#!/bin/sh | |
set -e | |
HEADER="${SRCROOT}/LearningSpaces-iPad/ip_address.h" | |
echo "// This file is generated by a build script." > $HEADER | |
echo "// Updated on "`date` >> $HEADER | |
echo "" >> $HEADER | |
ip_address="`ifconfig en0 | grep "inet " | cut -d: -f2 | awk '{print $2}'`" |
OlderNewer