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
{ | |
"title": "Caps Lock to Hyper Key (Command-Ctrl)", | |
"rules": [ | |
{ | |
"description": "Hyper Key: map Caps Lock to Command-Ctrl (Escape if alone)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { |
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
/** | |
* Opens a popup with given url and this popup will be polled by parent window for 'value' property on its window object. | |
* Once the 'value' property is set to true, the parent window will close the popup and trigger the given callback function. | |
* @param {string} url - url for popup | |
* @param {number} [pollInterval] - Interval in which to poll the popup window. (Default: 1000ms) | |
*/ | |
function OauthPopup = function(url, pollInterval) { | |
this.url = url; | |
this.pollInterval = pollInterval || 1000; | |
} |
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 myModule = angular.module('myModule', []); | |
myModule | |
.service('dataService', function($parse) { | |
var self = this; | |
return { | |
setData: function(data) { | |
self.data = data; | |
}, | |
getData: function() { |