Skip to content

Instantly share code, notes, and snippets.

self care

James varjmes

self care
Block or report user

Report or block varjmes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
varjmes / blob.js
Last active Mar 31, 2019
Creating the tree!
View blob.js
class Blob {
constructor(data) { = data
type() {
return 'blob'
toString() {
varjmes / vrs.js
Created Mar 30, 2019
initialising a vrs (git) repository with ref and object directories
View vrs.js
const fs = require('fs')
const path = require('path')
const directories = ['objects', 'refs']
const command = process.argv[2]
switch (command) {
case 'init':
const repoPath = process.argv[3] || ''
const gitPath = path.resolve(repoPath, '.git')
varjmes / git-object-filenames.js
Created Mar 30, 2019
Calculating SHA-1's of various strings to replicate how git calculates object filenames
View git-object-filenames.js
// Calculating and printing the SHA-1 hash of strings
const crypto = require('crypto')
const zlib = require('zlib')
function hashIt(string) {
return crypto
.update(string, 'utf-8')
View why-ayo.txt
As a core member of the team: I believe that node is lacking in what it does to support its community, its governance model
is currently a mess and I don't feel that it is easy for the majority of people to contribute. This did not start and does
not end with whatever has been occurring in node over these past two weeks. These have been my feelings for over two years
now. I have experienced this first hand as a former part of node, as I sat within the now defunct Inclusivity Working Group.
It's time to try something new.
View actions.js
import axios from 'axios'
import getHost from '../../lib/getHost'
function requestCategory (categoryId) {
return {
View james_salsa.txt
Tin of peeled plum tomatoes (incl. the juice!)
Fist of fresh coriander (cilantro for my US buds)
Half a brown onion
Half a garlic bulb
Half to 2/3 of a Jalapeño
2 Tablespoons of Olive Oil (don't get fancy with it)
Two shakes of black pepper (any shit will do)
Pinch of salt (any shit will do)
Chop the shit out of everything choppable
View package-lock.json
"name": "mobiles-mirage",
"lockfileVersion": 1,
"dependencies": {
"accepts": {
"version": "1.3.3",
"resolved": "",
"integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo="
"airbrake": {
View package.json
"name": "xxx",
"description": "xxx",
"bugs": {
"url": "xxx"
"author": "uSwitch Limited",
"contributors": [
"Charlotte Spencer <>"
View 2017-06-05T09_28_59_031Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/charlotte.spencer/.nvm/versions/node/v8.0.0/bin/node',
1 verbose cli '/Users/charlotte.spencer/.nvm/versions/node/v8.0.0/bin/npm',
1 verbose cli 'install' ]
2 info using npm@5.0.2
3 info using node@v8.0.0
4 silly install runPreinstallTopLevelLifecycles
5 silly preinstall mobiles-mirage@
6 info lifecycle mobiles-mirage@~preinstall: mobiles-mirage@
7 silly lifecycle mobiles-mirage@~preinstall: no script for preinstall, continuing
View npm5dns.txt
0 info it worked if it ends with ok
1 verbose cli [ '/Users/charlotte.spencer/.nvm/versions/node/v7.9.0/bin/node',
1 verbose cli '/Users/charlotte.spencer/.nvm/versions/node/v7.9.0/bin/npm5',
1 verbose cli 'i',
1 verbose cli 'dns',
1 verbose cli '--loglevel',
1 verbose cli 'silly' ]
2 info using npm@5.0.0-beta.44
3 info using node@v7.9.0
4 notice BETA npm5 is beta software. Please see for known issues, and please file a new one if you find something new.
You can’t perform that action at this time.