gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
This file contains hidden or 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
void main() { | |
Map<String,dynamic> toDegreesMinutesAndSeconds(double coord) { | |
double absolute = coord.abs(); | |
int degrees = absolute.floor(); | |
double minutesNotTruncated = (absolute - degrees) * 60; | |
int minutes = minutesNotTruncated.floor(); | |
double seconds = ( (minutesNotTruncated - minutes) * 60 ); | |
return { |
This file contains hidden or 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
# in /etc/systemd/system | |
[Unit] | |
Description=Bluetooth Agent | |
[Service] | |
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput | |
Type=simple | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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
/* | |
* Copyright (C) 2013 CircuitCo | |
* Copyright (C) 2018 Drew Fustini <[email protected]> | |
* | |
* Adafruit 1.8" TFT LCD on SPI1 bus using tinydrm st7735r driver | |
* | |
* LICENSE: | |
* -------- | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as |
This file contains hidden or 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
/** | |
* Creates line element on given position, with given length and angle. | |
*/ | |
function createLineElement(x, y, length, angle) { | |
var line = document.createElement("div"); | |
var styles = 'border: 1px solid black; ' | |
+ 'width: ' + length + 'px; ' | |
+ 'height: 0px; ' | |
+ '-moz-transform: rotate(' + angle + 'rad); ' | |
+ '-webkit-transform: rotate(' + angle + 'rad); ' |
This file contains hidden or 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 | |
## Check for versions compiled with ARM at http://nodejs.org/dist/ | |
## Inspired by http://oskarhane.com/raspberry-pi-install-node-js-and-npm/ | |
## Fill in the Node Version here: | |
########################################################################## | |
NODE_VERSION="v0.10.21" |