- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
#!/usr/bin/env python | |
from argparse import ArgumentParser, ArgumentTypeError | |
from subprocess import check_output | |
from sys import exit, stdout | |
def format_count(count, scale): | |
return f'%.{scale}f' % count | |
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<module name="Checker"> | |
<property name="charset" value="UTF-8" /> | |
<property name="severity" value="warning" /> | |
<!-- Checks for whitespace --> | |
<!-- See http://checkstyle.sf.net/config_whitespace.html --> | |
<module name="FileTabCharacter"> |
(ns datomic-helpers | |
(:require [datomic.api :as d])) | |
;;; Expose Datomic vars here, for convenience | |
;;; Ring middleware | |
(defn wrap-datomic | |
"A Ring middleware that provides a request-consistent database connection and | |
value for the life of a request." |
(ns datomic-helpers | |
(:require [clojure.java.io :as io] | |
[clojure.walk :as walk] | |
[datomic.api :as d :refer (db)])) | |
;;; Expose Datomic vars here, for convenience | |
(def tempid d/tempid) | |
(def connect d/connect) | |
(def create-database d/create-database) |
(ns handler | |
(:require [clj-time.core :as t] | |
[clj-time.coerce :as t.c] | |
[spec-tools.conform :as conform] | |
[clojure.spec.alpha :as s] | |
[spec-tools.core :as st] | |
[compojure.api.sweet :refer :all] | |
[ring.util.http-response :refer :all])) | |
(def timestamp |
about | |
admin | |
blog | |
calendar | |
contact | |
copyright | |
dashboard | |
errors | |
events |
// http://play.golang.org/p/i5L__nrXyA | |
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
) | |
// change this to your local time zone name. |
package main | |
func main() { | |
// ... setup ... | |
l, err := net.Listen("tcp", *laddr) | |
if err != nil { | |
log.Fatal(err) | |
} |
from java2python.config.default import astTransforms | |
from java2python.lang.selector import Type | |
from java2python.lang import tokens | |
interfaces = [] | |
def throwAwayInterface(node, config): | |
interfaces.append(node.firstChildOfType(tokens.IDENT).text) | |
node.parent.children.remove(node) |