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
# How to create an RPM repository | |
# This is for Redhat 64 bit versions of Linux. You can create your own RPM repository # to host your custom RPM packages. | |
# | |
# See "How to create an RPM from source with spec file" for more information. | |
# https://gist.github.com/1376973 | |
# Step: 1 | |
# Install createrepo |
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
function async(makeGenerator){ | |
return function () { | |
var generator = makeGenerator.apply(this, arguments); | |
function handle(result){ | |
// result => { done: [Boolean], value: [Object] } | |
if (result.done) return Promise.resolve(result.value); | |
return Promise.resolve(result.value).then(function (res){ | |
return handle(generator.next(res)); |
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
// example city to NOAA station mapping. Can be found on: http://tidesandcurrents.noaa.gov/map/ | |
var STATIONS = { | |
'seattle': 9447130, | |
'san francisco': 9414290, | |
'monterey': 9413450, | |
'los angeles': 9410660, | |
'san diego': 9410170, | |
'boston': 8443970, | |
'new york': 8518750, |
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
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions |
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
#I always need to do this, often forget the syntax | |
ln -s TARGET LINK_NAME |