path = require 'path'
exports.pkgmanRegister = (registrar) ->
registrar.registerHook 'shrubAngularDirective', -> [
'$compile', '$window'
($compile, $window) ->
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
angular.element(document.body).injector().invoke(['$rootScope', 'shrub-socket', 'shrub-ui/notifications', function($rootScope, socket, notifications) { | |
if (window.playMessageSound) { | |
window.playMessageSound = false; | |
notifications.add({text: 'Message sound disabled'}); | |
} | |
else { | |
window.playMessageSound = true; | |
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
javascript:(function() { angular.element(document.body).injector().invoke(['$rootScope', 'shrub-socket', 'shrub-ui/notifications', function($rootScope, socket, notifications) { if (window.playMessageSound) { window.playMessageSound = false; notifications.add({text: 'Message sound disabled'}); } else { window.playMessageSound = true; if (!window.messageSound) { window.messageSound = document.createElement('audio'); window.messageSound.src = 'http://reddichat.com/chat-message.mp3'; socket.on('reddichat.chat.message', function() { if (window.playMessageSound) window.messageSound.play(); }); } notifications.add({text: 'Message sound enabled'}); } $rootScope.$digest(); }]); })(); |
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
javascript:(function() { | |
var timeToDisplayNotifInSeconds = 5; | |
var notificationRegistrar = function(){ | |
var notify = function(message, callback) { | |
var notification = new Notification(message); | |
callback(notification); | |
}; | |
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
javascript:(function() { var timeToDisplayNotifInSeconds = 5;var notificationRegistrar = function(){var notify = function(message, callback) {var notification = new Notification(message); callback(notification);};angular.element(document.body).injector().invoke(['$rootScope', 'shrub-socket', 'shrub-ui/notifications', 'shrub-user', function($rootScope, socket, notifications, user) { if (window.notifyMentions) { window.notifyMentions = false; notifications.add({text: 'Notifications for mentions disabled.'}); } else { window.notifyMentions = true; socket.on('reddichat.chat.message', function(message) {if(message.text.search(user.instance().name) > -1) {notify(message. from + ": " + message.text, function(notification){setTimeout(function(){notification.close();}, timeToDisplayNotifInSeconds * 1000);});} }); notifications.add({text: 'Notifications for mentions enabled.'}); } $rootScope.$digest(); }]);};var registerNotificationsIfPermitted = function(c |
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
From 7e9c16806638ca413025defc91185c8f2ea471a6 Mon Sep 17 00:00:00 2001 | |
From: Ruben Rodriguez <cha0s@therealcha0s.net> | |
Date: Wed, 23 Jun 2010 07:00:06 -0500 | |
Subject: [PATCH] Added Script.createContext() and Script.runInContext() and implemented it in the REPL. | |
--- | |
lib/repl.js | 40 ++++++++-------- | |
src/node.cc | 7 ++- | |
src/node_cares.cc | 8 ++-- | |
src/node_child_process.cc | 2 +- |
- Get it from http://the.earth.li/~sgtatham/putty/latest/x86/putty.zip
- Extract files to C:\PuTTY
Generate an SSH key
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
$ sudo npm install -g npm | |
npm http GET https://registry.npmjs.org/npm | |
npm http 200 https://registry.npmjs.org/npm | |
npm http GET https://registry.npmjs.org/npm/-/npm-1.1.24.tgz | |
npm http 404 https://registry.npmjs.org/npm/-/npm-1.1.24.tgz | |
npm ERR! Error: shasum check failed for /tmp/npm-1338882388006/1338882388006-0.6075703264214098/tmp.tgz | |
npm ERR! Expected: e7523bb997bd4af19a95f02848e805ab9820c442 | |
npm ERR! Actual: c9de0f9499b0a8db7475a87b0586fe0b83472313 | |
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/sha.js:25:20 |
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
# jQuery. | |
$ = jQuery | |
# The slot where the next guessed letter will fall. | |
guessSlot = 0 | |
# The prefix necessary to keep the letter lists centered. | |
prefix = 2 | |
# Triggered when a guess is submitted. |
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
app.register( | |
'.html' | |
compile: (source, options) -> | |
if typeof source isnt 'string' then source else | |
(options) -> | |
mustache.to_html( | |
source |
OlderNewer