Skip to content

Instantly share code, notes, and snippets.

View adamrights's full-sized avatar

Adam Bedell adamrights

View GitHub Profile
`// noprotect`
rndAddToLatLon = ->
Math.floor (((if Math.random() < 0.5 then -1 else 1)) * 2) + 1
console.log "ANGULAR DEFINED" if angular
angular.module("myApp",["google-maps"])
.controller "MyCtrl", ($scope, $timeout, $log, $http) ->
$log.info "IN MyCtrl!!"

Ionic Map Slide Menu App

Example Ionic framework app with slide menu and google javascript maps embedded

A Pen by YAFRA.org on CodePen.

License.

myapp.factory('Comments', function ($location) {
var isInitialized = false;
var comments = {};
var getConfig = function(){
var articleId = $location.path();
var defaults = {
articleId: articleId,
collectionMeta: {
articleId: articleId,
export JAVA_OPTS="$JAVA_OPTS
-javaagent:full/path/to/newrelic.jar"
angular.module('todo', ['ionic'])
/**
* The Projects factory handles saving and loading projects
* from local storage, and also lets us save and load the
* last active project index.
*/
.factory('Projects', function() {
return {
all: function() {
var projectString = window.localStorage['projects'];
#source: http://blog.leog.in/index.php/build-rpm-without-breaking-head/
Name: Tengine
Version: 1.5.1
Release: 1%{?dist}
Summary: Tengine web server forked out of Nginx
Group: Applications/Internet
License: open BSD license
URL: http://tengine.taobao.org/download.html
server {
listen 8888;
server_name localhost;
location / {
proxy_pass http://127.0.0.1:8890/;
proxy_redirect off;
client_max_body_size 10m;
client_body_buffer_size 128l;

Terminal setup: http://mikebuss.com/2014/02/02/a-beautiful-productive-terminal-experience/

BetterTouchTool - lots of keyboard shortcut and mouse gesture options. Also does what Divvy does to let you reposition windows, but for free.

ControlPlane - lets you automate a bunch of actions based on what is connected to your machine (keyboard, mouse, monitor, power, wifi network). Good for shutting off your wireless when you’re wired in. I hope that helps some of these overcrowded wireless APs around here.

Flux - matches your color temperature to the position of the sun, and is configurable to your location and preference of color temp ranges. Not great for designers though, I’d imagine.

iTerm2 - A number of marked improvements on the default Terminal app, including split tabs and lots of options/shortcuts.

#!/bin/bash
. /opt/elasticbeanstalk/env.vars
function error_exit
{
eventHelper.py --msg "$1" --severity ERROR
exit $2
}
#install not-installed yet app node_modules
if [ ! -d "/var/node_modules" ]; then
#!/bin/bash
#source env variables including node version
. /opt/elasticbeanstalk/env.vars
function error_exit
{
eventHelper.py --msg "$1" --severity ERROR
exit $2
}