I hereby claim:
- I am heypragyan on github.
- I am pragyan (https://keybase.io/pragyan) on keybase.
- I have a public key ASC1CGIMKcozgd4LL1G7CmxbSM6X7L40AofJCJ-hgxx00wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(ns number-to-words | |
(:require [clojure.string :as cstr])) | |
(def ^:private log10 #(java.lang.Math/log10 %)) | |
(def ^:private char->int #(Character/getNumericValue %)) | |
(def ^:private number-map | |
{0 "" | |
1 "one" |
(ns metabase | |
(:require | |
[clojure.walk :as cwalk] | |
[clojure.string :as cstr])) | |
(defmulti gen-limit-str | |
{:arglist '([env limit])} | |
(fn [env limit] | |
(if (number? limit) | |
(:dialect env) |
CategorySchema.statics.getLineage = function (categoryId, flag, done) { | |
var self = this; | |
var count1 = 0; | |
var count2 = 0; | |
var recurse = function (id, results) { | |
var deferred = Promise.defer(); | |
self.findById(id, function(error, category) { | |
if (error) { |
// Restify Server CheatSheet. | |
// More about the API: http://mcavage.me/node-restify/#server-api | |
// Install restify with npm install restify | |
// 1.1. Creating a Server. | |
// http://mcavage.me/node-restify/#Creating-a-Server | |
var restify = require('restify'); |
sudo apt-get install libxml2-dev libxslt1-dev
sudo apt-get install libffi-dev libssl-dev
## set local/fastest mirror and local timezone | |
mv /etc/apt/sources.list /etc/apt/sources.list.orig | |
cat > /etc/apt/sources.list <<EOF | |
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse |
Starts with: abc Ends with: xyz Contains: 123 Doesn't contain: 456
OR
/^abc|xyz$|123|^(?:(?!456).)*$/
AND
/^(?=^abc)(?=.*xyz$)(?=.*123)(?=^(?:(?!456).)*$).*$/