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
// ==UserScript== | |
// @id gmailgithubissuescript@userscripts.org | |
// @name Gmail GitHub Issue | |
// @version 1.2 | |
// @release 2014-10-29 | |
// @author Benjamin Harris | |
// @namespace gmailgithubissuescript@userscripts.org | |
// @description Create a GitHub issue from Gmail | |
// @include https://mail.google.com/mail/u/* | |
// @match https://mail.google.com/mail/u/* |
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
// ==UserScript== | |
// @id 10bisscript@userscripts.org | |
// @name 10bis | |
// @version 1.0 | |
// @release 2014-09-03 | |
// @author Benjamin Harris | |
// @namespace 10bisscript@userscripts.org | |
// @description A suite of tools to improve the 10bis experience | |
// @include http://www.10bis.co.il/Restaurants/Menu/Delivery* | |
// @match http://www.10bis.co.il/Restaurants/Menu/Delivery* |
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
/*----- POPUP -----*/ | |
.wpsum-popup-box { | |
position: absolute !important; | |
overflow: visible !important; | |
margin: 0 !important; | |
top: 20% !important; | |
left: 50% !important; | |
margin-left: -150px !important; | |
visibility: visible !important; | |
padding: 10px 25px !important; |
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 | |
# Downloads all of Jonathan Coulton's free songs | |
# from http://www.jonathancoulton.com/store/downloads/ | |
curl -C - "http://songs.jonathancoulton.com/free/mp3/Washy%20Ad%20Jeffy.mp3" -o "Washy Ad Jeffy.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/SkyMall.mp3" -o "SkyMall.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/Creepy%20Doll.mp3" -o "Creepy Doll.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/Big%20Bad%20World%20One.mp3" -o "Big Bad World One.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/Mr.%20Fancy%20Pants.mp3" -o "Mr. Fancy Pants.mp3" \ | |
"http://songs.jonathancoulton.com/free/mp3/I'm%20Your%20Moon.mp3" -o "I'm Your Moon.mp3" \ |
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
// in routes.js | |
function redirectWhenLoggedIn(context) { | |
var user = Meteor.user(); | |
if (user && !Meteor.loggingIn()) { | |
context.redirect('/dashboard'); | |
} | |
} | |
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
var setSettings = function () { | |
Session.set('dashboard', false); | |
} | |
var setDashboard = function () { | |
Session.set('dashboard', true); | |
} | |
Meteor.pages({ | |
'/settings': { to: "settings", before: [setSettings] }, |
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 requireLogin() { | |
if (! Meteor.user()) | |
this.redirect('/login'); | |
} | |
Meteor.pages({ | |
'/protected_page': { to: "protected_page", before: [requireLogin] }, | |
}); |
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
<head> | |
<title>Cinder</title> | |
</head> | |
<body> | |
{{#isolate}} | |
{{renderPage}} | |
{{/isolate}} | |
{{!>logs_bootstrap}} | |
</body> |
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
// On the client AND the server | |
Rooms = new Meteor.Collection('rooms'); | |
Messages = new Meteor.Collection('messages'); | |
// On the server | |
Meteor.publish('chatRoom', function(roomId) { | |
return Messages.find({ roomId: roomId }); | |
}); | |
// On the client |
OlderNewer