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 golang:alpine | |
ADD ./src /go/src/app | |
WORKDIR /go/src/app | |
ENV PORT=3001 | |
CMD ["go", "run", "main.go"] |
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
#!/usr/bin/python2 | |
import serial | |
import re, sys, signal, os, time, datetime | |
import RPi.GPIO as GPIO | |
BITRATE = 9600 | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(7, GPIO.OUT) | |
GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP) |
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
const Card = (props) => { | |
return ( | |
<div style={{margin: '1em'}}> | |
<img width="75" src={props.avatar_url} /> | |
<div style={{display: 'inline-block', marginLeft: 10}}> | |
<div style={{fontSize: '1.25em', fontWeight: 'bold'}}> | |
{props.name} | |
</div> | |
<div>{props.company}</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
'use strict'; | |
angular.module('components.auth') | |
.provider('AuthSystemRoles', function () { | |
var roles = { | |
system : 'System User', | |
admin : 'Admin User', | |
account : 'Account Owner' | |
}; |
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
// api service calling example | |
apiService.get() | |
.then(response => { | |
return response.data; | |
}) | |
.catch(err => { | |
return errorHandler(err); | |
}); |
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
#!/bin/bash | |
# @link https://gist.github.com/mattscilipoti/8424018 | |
# | |
# Called by "git push" after it has checked the remote status, | |
# but before anything has been pushed. | |
# | |
# If this script exits with a non-zero status nothing will be pushed. | |
# | |
# Steps to install, from the root directory of your repo... |
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 Plane(planeName) { | |
this.planeName = planeName; | |
this.isFlying = false; | |
this.takeOff = function (track) { | |
if (track) { | |
if(!isFlying) { | |
track = false; | |
isFlying = 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 ObserverList(){ | |
this.observerList = []; | |
} | |
ObserverList.prototype.add = function( obj ){ | |
return this.observerList.push( obj ); | |
}; | |
ObserverList.prototype.count = function(){ | |
return this.observerList.length; |
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
<message name="getTermRequest"> | |
<part name="term" type="xs:string"/> | |
</message> | |
<message name="getTermResponse"> | |
<part name="value" type="xs:string"/> | |
</message> | |
<portType name="glossaryTerms"> | |
<operation name="getTerm"> |
NewerOlder