Skip to content

Instantly share code, notes, and snippets.

View danalexilewis's full-sized avatar

Daniel Lewis danalexilewis

  • Bamboo Creative
  • Goteborg, Sweden
  • 04:35 (UTC +02:00)
View GitHub Profile
@danalexilewis
danalexilewis / DOM3D.js
Created March 27, 2024 14:53 — forked from OrionReed/dom3d.js
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@danalexilewis
danalexilewis / better-git-branch.sh
Created January 15, 2024 16:28 — forked from schacon/better-git-branch.sh
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'
@danalexilewis
danalexilewis / dvorak-01.json
Last active August 14, 2019 21:49
model-01 custom dvorak layout
{
"keymap": [
{
"keyCode": 65535,
"label": "",
"verbose": "Transparent"
},
{
"keyCode": 58,
"label": "F1"
@danalexilewis
danalexilewis / gist:cc9f6f47ed1320092b99a257a3c4a1f1
Created April 15, 2018 08:00
c sharp C# windows dev setup
# Computer Set-Up Instructions: C# on Windows
If you are working on a Mac, Linux or Windows Vista machine you will need to deploy your own development machine. We suggest using [Xamarin](http://xamarin.com/platform) and [Mono](http://www.mono-project.com/).
## Learning Competencies
By the end of this lesson, you should be able to:
- Install technologies from the command line
- Understand what a package manager is and why it is helpful

Keybase proof

I hereby claim:

  • I am agentlewis on github.
  • I am agentlewis (https://keybase.io/agentlewis) on keybase.
  • I have a public key whose fingerprint is AAD3 2E5F 54BF 2586 7765 B5A4 3B04 637A 65C0 A1DC

To claim this, I am signing this object:

" Plugins {{{
call plug#begin('/usr/local/etc/dotfiles/nvim/plugged')
Plug 'junegunn/vim-easy-align'
"TODO FIX LABELS
Plug 'fatih/vim-go', { 'for': 'go' }
Plug 'tomtom/tcomment_vim'
Plug 'haya14busa/incsearch.vim'
Plug 'benekastah/neomake'
Plug 'majutsushi/tagbar'
Plug 'tpope/vim-fugitive'
@danalexilewis
danalexilewis / sample.unsolved.txt
Created July 28, 2015 23:57
recursive sudoku solver
105802000090076405200400819019007306762083090000061050007600030430020501600308900
005030081902850060600004050007402830349760005008300490150087002090000600026049503
105802000090076405200400819019007306762083090000061050007600030430020501600308900
005030081902850060600004050007402830349760005008300490150087002090000600026049503
290500007700000400004738012902003064800050070500067200309004005000080700087005109
080020000040500320020309046600090004000640501134050700360004002407230600000700450
608730000200000460000064820080005701900618004031000080860200039050000100100456200
370000001000700005408061090000010000050090460086002030000000000694005203800149500
000689100800000029150000008403000050200005000090240801084700910500000060060410000
030500804504200010008009000790806103000005400050000007800000702000704600610300500
@danalexilewis
danalexilewis / .irbrc
Last active August 29, 2015 14:24
.irbrc for autocompletion and pretty print
def load (required_gem)
begin
gem required_gem
rescue LoadError
system("gem install " + required_gem)
Gem.clear_paths
end
require required_gem
end
@danalexilewis
danalexilewis / .jscsrc
Last active August 29, 2015 14:24
jscs file
{
"esnext": true,
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
@danalexilewis
danalexilewis / eda-cs-win-setup.ps1
Last active August 29, 2015 14:20
EDA BoxStarter
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Set-StartScreenOptions -EnableBootToDesktop
cinst git
cinst poshgit
cinst sublimetext2
cinst sublimetext2.powershellalias
cinst SQLite
cinst sqlite.shell
cinst visualstudiocommunity2013