$ cd rust-lang-repo/
$ git ask src/libcore
* src/libcore
Brian Anderson <[email protected]>
Patrick Walton <[email protected]>
Alex Crichton <[email protected]>
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 | |
# -*- coding: utf-8 -*- | |
''' | |
Solving best-before problem | |
http://www.spotify.com/se/jobs/tech/best-before/ | |
''' | |
# ############################################################################ |
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
>>> a = (1, [2, 3]) | |
>>> a[1] += [4, 5] | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: 'tuple' object does not support item assignment | |
>>> print a | |
(1, [2, 3, 4, 5]) | |
>>> |
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
require "formula" | |
class Ah < Formula | |
homepage "https://github.com/9seconds/ah" | |
url "https://github.com/9seconds/ah.git", :tag => "0.13.1" | |
version "0.13.1" | |
sha1 "" | |
bottle do | |
sha1 "7563b28df830baa880731b9448e88b99dcb68420" => :mavericks |
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
>>> import os | |
>>> os.remove == os.unlink | |
True | |
>>> os.remove is os.unlink | |
False | |
>>> |
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 | |
set -eu -o pipefail | |
# ----------------------------------------------------------------------------- | |
export LANG=en_US.UTF-8 | |
export BORG_PASSPHRASE='' | |
MAIN_USER="johndoe" | |
MAIN_HOMEDIR="$(getent passwd ${MAIN_USER} | cut -f 6 -d ':')" |
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
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import, division, print_function | |
import os | |
import os.path | |
import sqlite3 | |
import time | |
import uuid |
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
--- | |
# vim: set ft=ansible: | |
# Mandatory: copy_back - drectory path without trailing slash | |
# commit_hash - commit to work with | |
- hosts: all | |
become: true | |
gather_facts: false |
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 python3 | |
# -*- coding: utf-8 -*- | |
# vim: set ft=python: | |
import argparse | |
import contextlib | |
import json | |
import logging | |
import os |
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
# -*- coding: utf-8 -*- | |
# vim: set et sw=4 ts=4: | |
import logging | |
import logging.config | |
import flask | |
OlderNewer