Skip to content

Instantly share code, notes, and snippets.

View halvves's full-sized avatar
🌳

halvves

🌳
View GitHub Profile
@halvves
halvves / ghpage-repo-setup.md
Last active October 29, 2015 03:07
How to setup a GitHub page for an individual repository

#GitHub Pages Setup for an Indivual Repository

Create an orphan branch named gh-pages

git checkout --orphan gh-pages

Add and commit files

Be sure to be on branch gh-pages at this time. If you've strayed:

git checkout gh-pages

KC60 Keyboard end-user tips, tricks, programming notes, etc.

Leimi's note: removed lots of stuff from the original gist of scottjl, (thanks to him by the way!), as in the end some wasn't useful for me. If you are intestered, go check the gist revisions.

The KC60 is kinda like a premade GH60 that was first sold on Massdrop during summer 2015.
It runs on TMK firmware, or something based on it at least (not sure this is the real source for the keyboard but it seems it is), which means it's heavily programmable.
There is a GUI tool (the source of this tool seems to be here) and a command-line tool to ease up the process of programming the board.
**Go check this great article on Key

@halvves
halvves / hybridline.vim
Created January 14, 2016 06:39 — forked from w0ng/hybridline.vim
vim-airline theme based on powerline and hybrid colours
" vim-airline companion theme of Hybrid
" (https://github.com/w0ng/vim-hybrid)
let g:airline#themes#hybrid#palette = {}
let s:N1 = [ '#282a2e' , '#c5c8c6' , 'black' , 15 ]
let s:N2 = [ '#c5c8c6' , '#373b41' , 15 , 8 ]
let s:N3 = [ '#ffffff' , '#282a2e' , 255 , 'black' ]
let g:airline#themes#hybrid#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
let g:airline#themes#hybrid#palette.normal.airline_a = ['#005f00', '#b5bd68', 22, 10, '']
@halvves
halvves / tmux-cheatsheet.markdown
Created January 15, 2016 12:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@halvves
halvves / gulpfile.js
Created January 15, 2016 13:12 — forked from rudijs/gulpfile.js
GulpJS Jshint with Notify on Error
var gulp = require('gulp'),
watch = require('gulp-watch'),
// This will keeps pipes working after error event
plumber = require('gulp-plumber'),
// linting
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
@halvves
halvves / GPL.md
Created January 15, 2016 13:48 — forked from jnrbsn/GPL.md
A Markdown-formatted GPL for your GitHub projects.

GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

@halvves
halvves / ajax-exercises.txt
Created February 23, 2016 22:30 — forked from pamelafox/ajax-exercises.txt
AJAX Exercises
Exercise: Nutrition Facts
Create an empty webpage.
Download nutrition.xml from https://gist.github.com/3000322 and place in your project folder.
Use AJAX via jQuery or JS API to fetch the file into the page.
Create a table. For each <food> in the XML file, create a row in the table with the food name and nutritional facts - serving size, calories, carbs.
Bonus: Use the tablesorter jQuery plugin to make the table sortable by the nutritional facts.
Exercise: Lady Gaga News
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
<body>
hey ddad
</body>
@halvves
halvves / quiz.md
Created September 29, 2016 06:18 — forked from gaearon/quiz.md

A top-level App component returns <Button /> from its render() method.

  1. What is the relationship between <Button /> and this in that Button’s render()?

  2. Does rendering <Button><Icon /></Button> guarantee that an Icon mounts?

  3. Can the App change anything in the Button output? What and how?