Skip to content

Instantly share code, notes, and snippets.

View Climax777's full-sized avatar
🎯
Focusing

Pieter Jordaan Climax777

🎯
Focusing
View GitHub Profile
@Climax777
Climax777 / .vimrc
Last active April 28, 2021 03:59
My vimrc file, based on the example vimrc file in Ubuntu, adding a LOT of plugins and settings
" An updated vimrc from the unix example.
" GistID: ef703ea372a15e36d90c
" Maintainer: Pieter Jordaan
" Last change: 13 Sept 2020
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
@penguinboy
penguinboy / Object Flatten
Created January 2, 2011 01:55
Flatten javascript objects into a single-depth object
var flattenObject = function(ob) {
var toReturn = {};
for (var i in ob) {
if (!ob.hasOwnProperty(i)) continue;
if ((typeof ob[i]) == 'object') {
var flatObject = flattenObject(ob[i]);
for (var x in flatObject) {
if (!flatObject.hasOwnProperty(x)) continue;