These rules are adopted from the AngularJS commit conventions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python -O | |
# -*- coding: utf-8 -*- | |
#from __future__ import print_function, unicode_literals, with_statement, division, absolute_import | |
# import os | |
# import random | |
# import requests | |
import sys | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to | |
# compress e. g. bookmark backups (*.jsonlz4). | |
# | |
# This file format is in fact just plain LZ4 data with a custom header (magic number [8 bytes] and | |
# uncompressed file size [4 bytes, little endian]). | |
# | |
# This Python 3 script requires the LZ4 bindings for Python, see: https://pypi.python.org/pypi/lz4 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SWAGGER_DOCS_PORT=${SWAGGER_DOCS_PORT:-8080} | |
d=$(mktemp -d) | |
cd $d || exit 1 | |
wget -q https://raw.githubusercontent.com/moby/moby/master/api/swagger.yaml | |
docker run --rm -tid -v "$PWD/swagger.yaml":/usr/share/nginx/html/swagger.yaml \ | |
-e 'REDOC_OPTIONS=hide-hostname="true" lazy-rendering' \ | |
-p $SWAGGER_DOCS_PORT:80 \ | |
bfirsh/redoc:1.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Excerpt from https://stackoverflow.com/a/14930421/4725840 | |
git clone -b mybranch --single-branch git://sub.domain.com/repo.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python -O | |
# -*- coding: utf-8 -*- | |
######################## | |
# Require python-xlrd | |
######################## | |
from __future__ import print_function, unicode_literals, with_statement, division | |
import xlrd | |
import csv | |
from os import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use syntax::ast; | |
use syntax::ptr::P; | |
use syntax::codemap; | |
use syntax::parse::token; | |
use syntax::tokenstream::TokenTree; | |
use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacEager}; | |
use syntax::ext::build::AstBuilder; | |
use syntax_pos::Span; | |
use rustc_plugin::Registry; | |
use syntax::util::small_vector::SmallVector; |