Skip to content

Instantly share code, notes, and snippets.

@vrinek
vrinek / gist:bda51f6fc8b22b5df301
Last active February 10, 2024 20:21
Blizzard Software Engineering Reading

Blizzard Software Engineering Reading

by Jay Baxter (circa 2009)

Associate developer

"This list is for people who want to become Associate Software Engineers at Blizzard. An associate should have skills at the level indicated by these books. Note that this is almost completely focused on C++ programming. This list is incomplete. I need a book on how to become a professional. I've listed several books that give examples of professional behavior, but not one on the actual training."

Programming: Principles and Practice Using C++

by Bjarne Stroustrup

@vrinek
vrinek / in-parallel.fish
Created February 2, 2022 13:51
Fish function to run multiple commands in parallel
argparse "n/name=" "c/commands=+" -- $argv
or return
set n (count $_flag_commands)
tmux has-session -t "$_flag_name"
if test "$status" -eq "0"
echo "tmux session already exists for $_flag_name, maybe still running?"
echo "Try `tmux new -As $_flag_name` to attach to it."
return 1

Keybase proof

I hereby claim:

  • I am vrinek on github.
  • I am vrinek (https://keybase.io/vrinek) on keybase.
  • I have a public key ASCN8yyYMWaUQoDifFldhoS4u8RE6CVQ7YLgYTrdzeh3hwo

To claim this, I am signing this object:

const nock = require('../.');
const test = require('tap').test;
const request = require('request');
test('reqheaders ignored #748 - test matching', t => {
nock('http://www.example.com', {
reqheaders: {
'authorization': 'Bearer TOKEN'
}
})
var http = require('http');
var countdown = 10;
function makeRequest(iteration) {
var t = Date.now();
http.request({
host: 'www.google.com',
path: '/'
}, function(response){
const configureMockStore = require('redux-mock-store').default;
const thunk = require('redux-thunk').default;
const nock = require('../');
const expect = require('expect'); // You can use any testing library
const fetch = require('isomorphic-fetch');
function fetchTodosRequest() {
return {
type: 'FETCH_TODOS_REQUEST'
}
const fetch = require('node-fetch');
const FormData = require('form-data');
const nock = require('../');
const formData = new FormData();
formData.append('test', 'true');
nock('http://localhost')
.post('/api/test')
.reply(function(uri, requestBody) {
$ git status
# On branch my-branch
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: db/schema.rb
#
no changes added to commit (use "git add" and/or "git commit -a")
$ git diff
@vrinek
vrinek / gist:5676786
Created May 30, 2013 09:34
Rename a method in Ruby
class Animal
def speak
puts "..."
end
end
class Cat < Animal
def speak
puts "Mew..."
end
@vrinek
vrinek / cleanup.md
Created December 12, 2015 13:02
Monday morning cleanup scripts

Docker

docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs docker rm
docker images | grep '^<none>' | awk '{print $3}' | xargs docker rmi

Rails