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
* |
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
# My ~/.profile file was getting too messy and unmaintainable, so I | |
# split everything out into separate files and sourced them | |
for file in ~/.profile.d/* | |
do | |
source $file | |
done |
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
videos = document.getElementsByTagName('video') | |
new VideoSync(videos[0], videos[1]) |
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
import { Controller } from 'stimulus' | |
// Stimulus controller to save location of same-origin iframe in hash of parent | |
// window and restore on reload. | |
// | |
// <iframe src="…" | |
// data-controller="iframe-location" | |
// data-action="load->iframe-location#save"> | |
// </frame> | |
// |
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
age | length | price | |
---|---|---|---|
36 | 29 | 12500 | |
41 | 38 | 34900 | |
45 | 13 | 1250 | |
11 | 26 | 22400 | |
19 | 48 | 265000 | |
33 | 38 | 89900 | |
5 | 42 | 399000 | |
39 | 28 | 3200 | |
39 | 27 | 14750 |
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
# The ID of your GitHub App | |
APP_ID= | |
WEBHOOK_SECRET=development | |
# Uncomment this to get verbose logging | |
# LOG_LEVEL=trace # or `info` to show less | |
# Go to https://smee.io/new set this to the URL that you are redirected to. | |
# WEBHOOK_PROXY_URL= |
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
module SailboatGuide | |
class Application < Rails::Application | |
console do | |
require 'console_helpers' | |
TOPLEVEL_BINDING.eval('self').extend ConsoleHelpers | |
end | |
end | |
end |
I’m working on a talk about the relationship between community participation and careers, and want to hear from people who feel like open source has impacted their career. Tell me your story!
Below are some questions related to get you started. Feel free to either fork this gist, blog your answers and send me the link, or email them directly to me at bkeepers@github.com. I will ask your permission before sharing anything about your story publicly.
-
How do you feel your participation in open source has impacted your career, both good and bad?
-
How did you first get exposed to open source? Why did you decide to learn more about it?
-
Do you code? If so, were you a coder when you got started with open source? Why did you learn to code?
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
// :+1: comments and single emoji | |
const pattern = /^\W*(:[\w-\+]+:|[\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])\W*$/g; | |
module.exports = robot => { | |
robot.on('issue_comment.created', context => { | |
if(context.payload.comment.body.match(pattern)) { | |
context.github.issues.deleteComment(context.issue()); | |
} | |
}) | |
} |