Skip to content

Instantly share code, notes, and snippets.

View maleghast's full-sized avatar

Oliver Godby maleghast

View GitHub Profile
@mfikes
mfikes / specter-planck.md
Last active May 1, 2016 14:10
Specter in Planck

Specter has been updated for bootstrap ClojureScript and can be used with Planck. Here's how:

First, make a Project file

(defproject sp "0.1.0"
  :dependencies [[com.rpl/specter "0.10.0"]])

Now you can try Specter constructs in bootstrap ClojureScript!

@wildlyinaccurate
wildlyinaccurate / workflows.md
Last active August 29, 2015 14:08
Git Workflows

Merge all the things (current workflow for the responsive-news repo)

  1. Branch from develop
  2. Commit as you go
  3. Merge develop into your branch
  4. Push branch, create PR
  5. When branch is ready to merge, merge the PR

Pros

@maleghast
maleghast / gist:1498a6533968dd8a3131
Created September 9, 2014 12:09
Development Configs for Kaleidoscope

#Development Configs for Kaleidoscope#

##kaleidoscope-broker##

###app.json###

{
    "external_dependencies": {},
    "secure_configuration": {},

Using fswatch, brew install fswatch, found the cookies were being stored in /Users/Dave/Library/Application Support/SlimerJS/Profiles. From there, it looks like there is a database that the cookies are being added to. Also, the phantom.addCookie pref didn't work for me, in Wraith we set in JS to use page, so it is page.addCookie. That allows me to set cookies and run slimer, here is the cookie profile I setup in slimer https://dl.dropboxusercontent.com/u/39286148/t94z4zlt.wraith.zip

If you unzip that on your machine, then run it, see if the cookie pref remains and doesn't load on responsive. Not sure of the dir for linux, but if this works, it should work once we find that location.

@Crystalh
Crystalh / gist:7677159
Last active December 29, 2015 13:29
Ideas & Topics for Web Dev monthly meeting

Topics

  • Sandbox, Virtualisation, Vagrant, and other tools
  • Efficient code reviews (including useful tools)
  • Grunt & Rake. The Make-tool ecosystem
  • Responsive images
  • Remote debugging and emulation in Chrome DevTools
@mowat27
mowat27 / tsv_file_load.clj
Created May 28, 2012 13:25
EuroClojure Learnings: TSV file
; My "lightbulb" moment at EuroClojure 2012 was that clojure is at it's most
; powerful when you build abstractions in the data and keep the functions as
; generic as possible so you can chain them easily
; For example, here is some code I wrote a few months ago to parse a freebase TSV file
(def keywords {"id" "freebase_id"})
(defn override-keywords [field-name]
(let [alternative (get keywords field-name)]
(if (nil? alternative) field-name alternative)))
(defn get-field-names [line] (map override-keywords (str/split line #"\t")))