Skip to content

Instantly share code, notes, and snippets.

View nodirt's full-sized avatar

Nodir Turakulov nodirt

View GitHub Profile

Does GitHub Markdown support trailing slash?

It does
not

Uncaught SyntaxError: Unexpected token )
(index):28 GET http://githut.info/web/js/vendors/d3/d3.min.js (anonymous function) @ (index):28
main.js:1 Uncaught ReferenceError: d3 is not defined

Chrome Infra Configuration service (luci-config)

  • Owner: nodir@
  • Prod instance: luci-config.appspot.com

[TOC]

Overview

  • Stores a registry of projects (clients) and chrome infra services
___________.__ __ ._.
\__ ___/| |__ _____ ____ | | __ ___.__. ____ __ __| |
| | | | \\__ \ / \| |/ / < | |/ _ \| | \ |
| | | Y \/ __ \| | \ < \___ ( <_> ) | /\|
|____| |___| (____ /___| /__|_ \ / ____|\____/|____/ __
\/ \/ \/ \/ \/ \/
@nodirt
nodirt / a.md
Last active August 31, 2015 18:30

Markdown style guide

Much of what makes Markdown great is the ability to write plain text, and get great formatted output as a result. To keep the slate clean for the next author, your Markdown should be simple and consistent with the whole corpus wherever possible.

We seek to balance three goals:

  1. Source text is readable and portable.
@nodirt
nodirt / FakeMap.js
Created December 12, 2011 23:29
Indexers in JavaScript
function FakeMap() {
var data = [];
function indexOf(key) {
var i;
for (i = 0; i < data.length; i++) {
if (data[i].key === key) return i;
}
return -1;
}
@nodirt
nodirt / classArg.py
Created January 23, 2012 04:59
Constructor as an argument
def mymap(fn, iterable):
for x in iterable:
yield fn(x)
class A(object):
def __init__(self, x):
self.x = x
@nodirt
nodirt / output
Created October 6, 2015 20:22
go test -n compress/zlib
mkdir -p $WORK/compress/zlib/_test/compress/
#
# compress/zlib
#
mkdir -p $WORK/compress/zlib/_test/_obj_test/
cd /Users/nodir/go/src/github.com/golang/go/src/compress/zlib
/Users/nodir/go/src/github.com/golang/go/pkg/tool/darwin_amd64/compile -o $WORK/compress/zlib/_test/compress/zlib.a -trimpath $WORK -p compress/zlib -complete -buildid d766f85b5551c2e988b19e7a04fd06d10cb0b7b3 -D _/Users/nodir/go/src/github.com/golang/go/src/compress/zlib -I $WORK -pack ./reader.go ./writer.go ./reader_test.go ./writer_test.go
@nodirt
nodirt / proposal.md
Last active October 8, 2015 05:33
Proposal: `-json` flag in `go test`
@nodirt
nodirt / logger.go
Last active November 1, 2015 04:23
type MyLogger interface {
Print(v ...interface{})
}
var l MyLogger = log.New(os.Stderr, "", 0)