application:about
application:show-preferences
application:show-settings
application:quit
application:hide
application:hide-other-applications
| const SECOND = 1000 | |
| const MINUTE = SECOND * 60 | |
| const HOUR = MINUTE * 60 | |
| const DAY = HOUR * 24 | |
| function timeAgo (date) { | |
| const delta = Date.now() - parseInt(date) | |
| const ago = { | |
| day: delta / DAY, | |
| hour: delta / HOUR, |
| #!/usr/bin/env bash | |
| echo "Who this :) <21" | |
| if [ "$1" = "" ]; then | |
| echo "Missing arg" | |
| exit 1 | |
| fi | |
| filepath=$(which $1 2> /dev/null) |
| #!/bin/bash | |
| # Set $skeleton to desired path and rename the file to e.g. closet.sh | |
| # Set $path to desired target directory to raise the skeleton | |
| # Usage: closet project-name | |
| name=$1 | |
| path=~/repos/$name | |
| skeleton=~/repos/sshow-node-module-skeleton | |
| if [ "$1" == "--current" ]; then |
| ["red", "pink", "purple", "deep-purple", "indigo", "blue", "light-blue", "cyan", "teal", "green", "light-green", "lime", "yellow", "amber", "orange", "deep-orange", "brown", "grey", "blue-grey"] |
| angular.module('ngApp') | |
| .directive('soundCloudPlayer', function () { | |
| return { | |
| restrict: 'E', | |
| template: '<iframe width="100%" height="465" scrolling="no" frameborder="no"></iframe>', | |
| link: function (scope, element, attrs) { | |
| var iframe = element.find('iframe'); | |
| var settings = [ | |
| 'buying=false', | |
| 'liking=false', |
| #!/bin/bash | |
| # | |
| # Set brightness of intel backlight | |
| # Usage: | |
| # setbrightness | |
| # Print current brightness | |
| # setbrightness <level> | |
| # Set brightness to <level> 1-10 | |
| # setbrightness less | |
| # Set brightness to current level - 1 |
| #!/bin/bash | |
| # Get zero-padded hex string from date format | |
| # Usage: f <format> | |
| function f { | |
| printf %02X $(date +$1) | |
| } | |
| h=$(f %-H) | |
| m=$(f %-M) |
| 'use strict'; | |
| const _ = require('underscore'); | |
| function Task(fn) { | |
| this.fn = fn; | |
| } | |
| function Worker(interval, tasks) { | |
| this.interval = interval; |
| 'use strict'; | |
| module.exports.jsonResponseObject = function jsonResponseObject(err, data) { | |
| return { | |
| meta: { | |
| status: err ? (err.status || 500) : 200, | |
| message: err ? (err.message || 'Error') : 'OK' | |
| }, | |
| response: data || {} | |
| }; |