Skip to content

Instantly share code, notes, and snippets.

Uday Verma verma

Block or report user

Report or block verma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
verma / postwalk.clj
Last active Sep 6, 2019
pre-walk vs. post-walk
View postwalk.clj
[:value 11]
{:value 11}
[:ber 11]
verma / Datascript101-Chapter2.clj
Created May 6, 2016
Datascript101 - Chapter 2
View Datascript101-Chapter2.clj
(ns dt.core
(:require [datascript.core :as d]))
;; schema so nice
(def schema {:maker/email {:db/unique :db.unique/identity}
:car/model {:db/unique :db.unique/identity}
:car/maker {:db/type :db.type/ref}
:car/colors {:db/cardinality :db.cardinality/many}})
View Datascript101-Chapter1.clj
(ns dt.core
(:require [datascript.core :as d]))
;; schema so nice
(def schema {:car/maker {:db/type :db.type/ref}
:car/colors {:db/cardinality :db.cardinality/many}})
;; create the connection
(def conn (d/create-conn schema))
View test.fnl
;; main.fnl
(fn love.draw []
( "Hello World" 200 200))
$ fennel --compile main.fnl > .\main.lua
;; main.lua
love.draw = function()
return"Hello World", 200, 200)
View interface-test.clj
(ns ramlpg.core
(:import [org.raml.v2.api RamlModelBuilder]
ArrayTypeDeclaration ObjectTypeDeclaration]))
(defn parse-raml [raml-resource]
(let [api (.buildApi (RamlModelBuilder.) raml-resource)]
(println (.isVersion10 api))
View deps.txt
Performing task 'deps' with profile(s): ''
[buddy "1.3.0"]
[buddy/buddy-auth "1.4.0" :exclusions [[org.clojure/clojure]]]
[buddy/buddy-core "1.2.0" :exclusions [[org.clojure/clojure]]]
[commons-codec "1.10"]
[org.bouncycastle/bcpkix-jdk15on "1.56"]
[org.bouncycastle/bcprov-jdk15on "1.56"]
[buddy/buddy-hashers "1.2.0" :exclusions [[org.clojure/clojure]]]
[clojurewerkz/scrypt "1.2.0"]
[com.lambdaworks/scrypt "1.4.0"]
View Xorg.conf
Section "Monitor"
Identifier "Monitor0"
VendorName "Shimian"
ModelName "QHD270"
HorizSync 88.8
VertRefresh 59.5
Option "DPMS"
Modeline "2560x1440" 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync
DisplaySize 597 336
View such.c
// gencarol.c
// generate carol set
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <errno.h>
#include <time.h>
View for.clj
;; iterate over a single collection
(for [x (range 5)]
(* x 2))
;; iterate over multiple collections
(for [x (range 5)
y (range 5)]
[x y])
;; conditional skip certain values
verma / .vimrc
Last active Apr 19, 2016
Most recent .vimrc
View .vimrc
" Enable syntax highlighting
" and apply our nice color theme
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
You can’t perform that action at this time.