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
View test.fnl
;; main.fnl
(fn love.draw []
(love.graphics.print "Hello World" 200 200))
$ fennel --compile main.fnl > .\main.lua
;; main.lua
love.draw = function()
return love.graphics.print("Hello World", 200, 200)
end
View interface-test.clj
(ns ramlpg.core
(:import [org.raml.v2.api RamlModelBuilder]
[org.raml.v2.internal.impl.commons.model.type
TypeDeclaration
FileTypeDeclaration
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
EndSection
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
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 init.el
;; such emacs init
;;
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
View compile-less.sh
#!/bin/sh
lessc resources/less/lurch.main.less resources/public/css/lurch.css
You can’t perform that action at this time.