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
terminal = require('color-terminal') | |
log = (error, stdout, stderr, cb) -> | |
if error | |
terminal.color('red').write stdout | |
else | |
terminal.color('green').write stdout | |
cb() | |
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
<div class="switch switch-small" bootstrap-switch="sync"> | |
<input id="syncswitch" type="checkbox" /> | |
</div> | |
module.directive('bootstrapSwitch', function() { | |
return { | |
restrict:'A', | |
scope: { | |
sync: 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
/* | |
*--------------------------------------------------------------- | |
*--------------------------------------------------------------- | |
*/ | |
(function($, undefined){ | |
"use strict"; | |
var MentionApp = MentionApp || {}; |
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
TestModel = Backbone.Model.extend({ | |
url: '/test' | |
}); | |
describe ('Model', function () { | |
it('should be able to change password (fake server)', function() { | |
var model, promise, request, server; | |
server = sinon.fakeServer.create(); | |
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
# Switch to production | |
defaults delete com.evernote.Evernote | |
defaults write com.evernote.Evernote noteStoreURL https://www.evernote.com/edam/note | |
defaults write com.evernote.Evernote userStoreURL https://www.evernote.com/edam/user |
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
# Source: http://johnmcostaiii.net/2011/removing-mysql-osx-lion/ | |
sudo rm /usr/local/mysql | |
sudo rm -rf /usr/local/mysql* | |
sudo rm -rf /Library/StartupItems/MySQLCOM | |
sudo rm -rf /Library/PreferencePanes/My* | |
rm -rf ~/Library/PreferencePanes/My* | |
sudo rm -rf /Library/Receipts/mysql* | |
sudo rm -rf /Library/Receipts/MySQL* | |
sudo rm -rf /var/db/receipts/com.mysql.* |
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
html2canvas(document.getElementById('editor'), | |
{ | |
onrendered: function (canvas) { | |
doc.dirty = false; | |
// doc.info is the File structure | |
var data = angular.extend({}, doc.info); | |
if (doc.info.editable) { | |
data.content = doc.info.content; | |
data.thumbnail = { | |
// Base 64 URL friendly |
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
controllersModule.controller('ShareCtrl', ['$scope','appId','doc', function($scope, appId, doc) { | |
var client = new gapi.drive.share.ShareClient(appId); | |
$scope.enabled = function () { | |
return doc.info.id != null; | |
}; | |
$scope.share = function () { | |
client.setItemIds([doc.info.id]); | |
client.showSettingsDialog(); | |
} | |
}]); |
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
--- | |
HTML | |
--- | |
<div id="overlay" class="sign-in" ng-controller="OverlayCtrl" ng-show="loading"> | |
<div class="loading"> | |
<img src="/img/loading.gif"> | |
</div> | |
</div> |
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
--- | |
HTML | |
--- | |
<div id="overlay" class="sign-in" ng-controller="OverlayCtrl" ng-show="loading"> | |
<div class="loading"> | |
<img src="/img/loading.gif"> | |
</div> | |
</div> |
NewerOlder