Skip to content

Instantly share code, notes, and snippets.

View hillkim's full-sized avatar
🛠️
If it ain’t broke, it doesn’t have enough features yet

hillkim hillkim

🛠️
If it ain’t broke, it doesn’t have enough features yet
View GitHub Profile
@hillkim
hillkim / gist:c7240dd028cbb49b555ece071c8ab619
Created September 19, 2018 05:05 — forked from bradfrost/gist:59096a855281c433adc1
Why I'm Not A JavaScript Developer

Answering the Front-end developer JavaScript interview questions to the best of my ability.

  • Explain event delegation

Sometimes you need to delegate events to things.

  • Explain how this works in JavaScript

This references the object or "thing" defined elsewhere. It's like "hey, thing I defined elsewhere, I'm talkin' to you."

  • Explain how prototypal inheritance works.
@hillkim
hillkim / data.json
Created September 26, 2018 07:29
Formating countries data.A python script to format input data.txt file to a json output data.json
{ "countries" :[
{
"country" : "AF",
"name" : "Afghanistan",
"co-ord":[
60.5284298033,
29.318572496,
75.1580277851,
38.4862816432
]
@hillkim
hillkim / cljs-and-js-comparision.cljs
Created December 3, 2018 09:40 — forked from jacekschae/cljs-and-js-comparision.cljs
ClojureScript and JavaScript Comparison - ClojureScript Examples
;; Functions
(defn sum [x y] (+ x y))
;; Shorthand Functions
(def sum #(+ %1 %2))
;; Function Invocation
(sum 3 4)
@hillkim
hillkim / chart_reframe.cljs
Created January 10, 2019 06:16 — forked from edwthomas/chart_reframe.cljs
Using CLJS and Re-frame to call third-part JS library (Chartist.js)
(:require [re-frame.core :as re-frame]
[reagent.core :as reagent]
[cljsjs.chartist])
(defn show-chart
[]
(let [chart-data {:labels ["Mar-2012" "Jun-2012" "Nov-2012" "Oct-2013" "Nov-2014"]
:series [[1 1 6 15 25]]}
options {:width "700px"
:height "380px"}]