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
export default (fileInfo, api) => { | |
const j = api.jscodeshift; | |
const methods = []; | |
const root = j(fileInfo.source); | |
const body = root.find(j.Program).get('body', 0).node; | |
const { comments } = body; | |
delete body.comments | |
root.get().node.comments = comments; | |
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
element.addEventListener('transitionend', function(e) { | |
let prop = e.propertyName.match(/border-(.*)-color/); | |
if (prop[1]) { | |
console.log(`Border color for ${prop[1]} transitioned`); | |
} | |
}); | |
element.addEventListener('transitionend', function(e) { | |
if (e.propertyName === 'border-top-left-radius') { |
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
var five = require('johnny-five'), | |
Imp = require("imp-io"), | |
keypress = require('keypress'), | |
board = new five.Board({ | |
repl: false, | |
debug: false, | |
io: new Imp({ | |
agent: 'FPKHeMBXeuim' | |
}) | |
}), |
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
var five = require("johnny-five"), | |
keypress = require('keypress'), | |
board = new five.Board(), | |
stdin = process.stdin; | |
keypress(process.stdin); | |
stdin.setRawMode(true); | |
stdin.resume(); | |
board.on("ready", function() { |
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
test: | |
override: | |
- ./node_modules/.bin/gulp ci |
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
There are many things that we do to start projects - create a repo, setup dev/qa servers, etc. If you could automate some of this process, what would you include? | |
- GitHub Repo | |
- Slack Integration | |
- [CodeClimate](codeclimate.com) | |
- [CircleCI](circleci.com) | |
- Dev Server | |
- username/pass for us and client | |
- QA Server | |
- username/pass for us and client |
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
class Player | |
def play_turn(warrior) | |
warrior.walk! | |
end | |
end |
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 geoCode(addr){ | |
var gc = Maps.newGeocoder(); | |
var geoJSON = gc.geocode(addr); | |
var lat = geoJSON.results[0].geometry.location.lat; | |
var lng = geoJSON.results[0].geometry.location.lng; | |
return lat + ", " + lng; | |
} |
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 geoCode(addr){ | |
var gc = Maps.newGeocoder(); | |
var geoJSON = gc.geocode(addr); | |
var lat = geoJSON.results[0].geometry.location.lat; | |
var lng = geoJSON.results[0].geometry.location.lng; | |
return lat + ", " + lng; | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am robtarr on github. | |
* I am robtarr (https://keybase.io/robtarr) on keybase. | |
* I have a public key whose fingerprint is 964A 0CC8 1AD5 7FFB A73B 68E7 7049 CA37 8F8E 8717 | |
To claim this, I am signing this object: |
NewerOlder