Skip to content

Instantly share code, notes, and snippets.

View Arthelon's full-sized avatar
🐈
xmas vibes

Arthelon Arthelon

🐈
xmas vibes
View GitHub Profile
@Arthelon
Arthelon / schema.js
Last active June 26, 2017 11:57
Fix for apollo pad demo
// This example demonstrates a simple server with some
// relational data: Posts and Authors. You can get the
// posts for a particular author, and vice-versa
// Read the complete docs for graphql-tools here:
// http://dev.apollodata.com/tools/graphql-tools/generate-schema.html
import { find, filter } from 'lodash';
import { makeExecutableSchema } from 'graphql-tools';
1. What was the task you had most fun doing, and what made it so enjoyable?
The task I had most fun doing was the area editing task since I felt I was able to cover most of the codebase (front-end, search-indexing, and related backend) through working on that task.
2. What task do you feel most proud about completing, and why?
Quite satisfies with my React work but I'm most proud of the refactoring I did to remove code duplication from React server-side rendering. Being able to write my own clean constructs, more specifically composing together custom utility functions to perform the rendering task, was deeply pleasing to do.
I'm also happy with the few files I documented in the codebase as it is something I don't do on a regular basis (this really shouldn't be the case :P).
3. Which task did you least enjoy completing, and what could be done to make it better?
Alone, some of the simpler UI tasks might have been pretty mundane. Most of the enjoyment I reaped from these tasks came from working on extensions/
@Arthelon
Arthelon / DuckyZeroBindings
Created December 4, 2016 13:54
Ducky zero backlight bindings
Fn + F10 - Windows Key Lock
Fn + F12 - 6-key/N-key rollover
Fn + Up Arrow - Increase LED Brightness Intensity
Fn + Down Arrow - Decrease LED Brightness Intensity
Fn + 1-7 - Adjusting level (1-7) LED Brightness Intensity
Fn + 0 - All LED off
Fn + S - Saving lighting mode [Doesn't work for me--this says it applies to the DK2108S and DK2108LS, and I'm guessing this is an LS-specific feature]
Fn + 8 - Pulsing mode
pg_restore -c -F t -f=backup.tar
mongoimport --db dbName --collection collectionName < fileName.json
adb reverse tcp:8081 tcp:8081
@Arthelon
Arthelon / S3 CORS
Created October 26, 2016 04:17
S3 CORS Config
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<ExposeHeader>ETag</ExposeHeader>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
@Arthelon
Arthelon / time to triple equal
Created October 24, 2016 09:31
crockford on comparisons
I don't know who you are. I don't know what you want. If you are looking for type coercion, I can tell you I don't have reliable rules. But what I do have are a very particular set of skills; skills I have acquired over a very long career. Skills that make me a nightmare for people like you. If you let my comparison operators go now, that'll be the end of it. I will not look for you, I will not pursue you. But if you don't, I will look for you, I will find you, and I will lint you....
mongo --eval "db.getSiblingDB('admin').shutdownServer()"
ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";