Work completed
Here is a list of all my the PRs that got merged during the SoC in chronological order:
Work completed
Here is a list of all my the PRs that got merged during the SoC in chronological order:
mkdir <path>
: Creates a new directory on the specified file path if such a path exists.mkdir -p <path>
: Creates intermediate directories necessary for creating the desired directory.
Discovered while setting Go Workspace and Namespace.Usage
$ mkdir $HOME/foo/bar # foo does not exist
from memory_profiler import profile | |
import random | |
import hug | |
@profile | |
def random_list(quantity): | |
result = [] | |
for i in range(1, quantity+1): | |
result.append((i, random.randint(0, 9))) |
from collections import namedtuple | |
import random | |
Card = namedtuple('Card', ['rank', 'suit']) | |
class Deck(object): | |
'''Represents an ordered deck of 52 playing cards.''' | |
def __init__(self, cards=None): | |
if cards is None: |
from collections import namedtuple | |
import random | |
Card = namedtuple('Card', ['rank', 'suit']) | |
class Deck(object): | |
'''Represents an ordered deck of 52 playing cards.''' | |
def __init__(self, cards=None): | |
if cards is None: |
# coding: utf-8 | |
from __future__ import print_function | |
original_string = 'abc∂´ƒ©' | |
unicode_literal = u'abc∂´ƒ©' | |
unicode_string = 'abc∂´ƒ©'.decode('utf-8') | |
print('Original String =', original_string) | |
print('Type =', type(original_string)) |
DIM FourDigitPassword INTEGER | |
FOR i = 0 TO 9 | |
FOR j = 0 TO 9 | |
FOR k = 0 TO 9 | |
FOR l = 0 TO 9 | |
FourDigitPassword = getFourDigits (i,j,k,l) | |
IF checkPasswordMatch(FourDigitPassword) = TRUE THEN | |
GOTO 140 | |
END | |
NEXT l |
#!env/bin/python3 | |
# encoding: utf-8 | |
""" | |
This scripts prints a random quote from WikiQuote page of Richard Feynman. | |
$ python3 feynmanize.py | |
!!! FEYMANIZE !!! | |
================================================================================ |
{ | |
"auto_complete_delay": 5, | |
"auto_complete_selector": "source, text", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"create_window_at_startup": false, | |
"default_line_ending": "unix", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", |