Skip to content

Instantly share code, notes, and snippets.

View tbergeron's full-sized avatar
😠
Microsoft's acquisition of GitHub won't change a thing? Oh dear irony.

Tommy Bergeron tbergeron

😠
Microsoft's acquisition of GitHub won't change a thing? Oh dear irony.
View GitHub Profile
App.TimeAgoView = Ember.View.extend({
tagName: 'abbr',
classNames: ['timeago'],
attributeBindings: ['title'],
title: null,
template: Ember.Handlebars.compile('{{view.output}}'),
output: function() {
return $.timeago(this.get('title'));
App.TimeAgoView = Ember.View.extend({
tagName: 'abbr',
classNames: ['timeago'],
attributeBindings: ['title'],
title: null,
didInsertElement: function () {
return $.timeago(this.get('title'));
}
});
javascript:(function(){editor=document.getElementById('ide_editor_view');editor.style.paddingBottom=0;sidebar=document.getElementById('ide_sidebar_view');sidebar.style.paddingBottom=0;console=document.getElementById('ide_console_view');console.parentNode.removeChild(console);})()
#main #channels .channels-list-container #container ul.lists {
position: absolute;
left: 0;
top: 0;
white-space: nowrap;
-webkit-animation: moveSlideshow 360s linear infinite;
-moz-animation: moveSlideshow 360s linear infinite;
}
#main #channels .channels-list-container #container ul.lists li {
#main #channels .channels-list-container #container ul.lists {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 300%;
-webkit-animation: moveSlideshow 360s linear infinite;
-moz-animation: moveSlideshow 360s linear infinite;
}
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
@tbergeron
tbergeron / gist:10486567
Created April 11, 2014 17:34
PHP JSHint Config
/*jshint nonew:true, jquery:true, curly:true, latedef:true, unused:true, noarg:true, trailing:true, forin:true, noempty:true, quotmark:single, eqeqeq:true, strict:true, debug:true, bitwise:true, browser:true, devel:true, freeze:true */
private function sendWelcomeEmail(User $user)
{
// Enabling pretend mode for developers
// Writing email in logs instead of really sending them.
if (App::environment('development')) {
Mail::pretend();
}
$data = [];
private function sendWelcomeEmail(User $user)
{
// Enabling pretend mode for developers
// Writing email in logs instead of really sending them.
if (App::environment('development')) {
Mail::pretend();
}
$data = [];
<?php
use Jenssegers\Mongodb\Model as Eloquent;
class AccessLog extends Eloquent {
protected $connection = 'mongodb';
protected $collection = 'access_logs';
}