Skip to content

Instantly share code, notes, and snippets.

View mavropalias's full-sized avatar
👋

Kostas Mavropalias mavropalias

👋
View GitHub Profile
@natelandau
natelandau / .bash_profile
Last active June 13, 2024 18:01
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@JedWatson
JedWatson / notes.md
Last active February 20, 2020 13:01
Notes on how to create a new field type for Keystone

Creating new Field Types for KeystoneJS

We're currently working on making it easier to add new field types to KeystoneJS as plugins.

In the meantime, if you'd like to work on your own field type, hopefully this guide will point you in the right direction.

Keystone fields require the following:

  • a {fieldType}.js file in ./lib/fieldTypes that controls the field and encapsulates options support, underscore functions, validation and updating
  • the {fieldType}.js file needs to be included by ./lib/fieldTypes/index.js
@jrtipton
jrtipton / metrobone.js
Created July 27, 2012 16:20
Make a Backbone.Collection behave like a WinJS.Binding.List (for e.g. WinJS.UI.ListView)
// Metrobone.js 0.0.1
//
// J.R. Tipton @jrtipton
// Metrobone is a wimpy little utility library for
// making Backbone.js integrate with WinJS controls
// (for Windows 8 development) a little easier.
//
// Two basic ways to use this overly verbose little
// guy:
//
@bloudermilk
bloudermilk / README.md
Created March 23, 2012 19:07
Facebook Page Categories

All of the categories!

I wrote a really simple JavaScript script that uses jQuery to extract all the categories from Facebook's "Create a page" page.

Instructions

  1. Navigate to the Create a page page.
  2. jQuerify the page.
  3. Open up your JavaScript console of choice and run the following script: