Version: | Build version go 1.1.1 |
---|---|
original: | http://golang.org/doc/code.html |
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 | |
import base64 | |
import secrets | |
def get_random_string(length: int, allowed_chars: str = ( | |
"abcdefghijklmnopqrstuvwxyz" | |
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
"0123456789" | |
)) -> str: |
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 print_function, unicode_literals | |
class Hoge(object): | |
_foo = None | |
_bar = None | |
_buz = None | |
def __init__(self, foo=1, bar=2, buz="3"): |
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 re | |
import sys | |
from datetime import datetime | |
from subprocess import run, PIPE | |
from urllib.parse import urlparse | |
from jinja2 import Template | |
from github import Github | |
re_refs = re.compile(r"^refs/pull/(?P<pr_number>\d+)/head$") |
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 | |
# -*- coding: utf-8 -*- | |
# Prerequisites: Qt5.9 installed | |
brew install cmake p7zip | |
# clone repository | |
git clone https://code.qt.io/pyside/pyside-setup && cd pyside-setup | |
# download clang installation |
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
ServerAliveInterval 60 | |
IdentitiesOnly yes | |
IdentityFile ~/.ssh/id_rsa | |
IdentityFile ~/.ssh/id_ecdsa | |
ForwardAgent yes | |
# | |
# General Proxy Setting (http://bit.ly/1MD3d24) | |
# |
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
くまさんの | |
基本運勢 | |
2016/2/1-2016/2/29の空模様 | |
■双子座 | |
忙しい時期が続いていますが、一月よりもずっと流れがよくなっていて、ストレスは軽くなっているはずです。 | |
ただ忙しいだけでなく、やったことがきちんと成果に結びついているので、やりがいも日増しに大きくなっていくでしょう。 | |
また、日々積み重ねていることから、「さらに、もっと大きなことをやってみたい」「もっと広い場所に出てみたい」「もう少し難しいことに挑戦してみたい」といったような「欲」が出てくるかもしれません。 | |
この「欲」は、貴方をどんどん強く、大きくしてくれる、「魔法」のようなものです。 |
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 | |
# -*- mode: python; coding: utf-8 -*- | |
""" | |
modulesetup - setup script for python module skelton | |
usage: | |
# execute script like this, | |
$ python modulesetup foo.bar.buz |
original: | Using Unicode in Erlang |
---|---|
source: | STDLIB User's Guide Version 1.19.1 |
url: | http://www.erlang.org/documentation/doc-5.10.1/lib/stdlib-1.19.1/doc/html/unicode_usage.html |
NewerOlder