git init
or
| // openBrowser tries to open the URL in a browser, | |
| // and returns whether it succeed in doing so. | |
| func openBrowser(url string) bool { | |
| var args []string | |
| switch runtime.GOOS { | |
| case "darwin": | |
| args = []string{"open"} | |
| case "windows": | |
| args = []string{"cmd", "/c", "start"} | |
| default: |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
| // Delete webhooks created by Real Artists Ship | |
| // Author: Robbie Trencheny | |
| // License: MIT | |
| // Run npm install github first | |
| // Must set GITHUB_TOKEN environment variable | |
| var GitHubApi = require("github"); | |
| var github = new GitHubApi(); |
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next, right?
+ webpack@4.0.0-beta.2
| package ciphers | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha512" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "log" | |
| ) |
| https://www.savirox.streamingqc.com/henri-pis-sa-gang-qc-en-streaming/ |
| # Put this function to your .bashrc file. | |
| # Usage: mv oldfilename | |
| # If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
| # Original mv is called when it's called with more than one argument. | |
| # It's useful when you want to change just a few letters in a long name. | |
| # | |
| # Also see: | |
| # - imv from renameutils | |
| # - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |