Get started on the Advent Of Code challenges using TDD. We at Binary Noggin have already setup the failing tests for you. If you want to submit answers and get credit, you will need to create an account on the advent of code website.
Happy Coding!
Get started on the Advent Of Code challenges using TDD. We at Binary Noggin have already setup the failing tests for you. If you want to submit answers and get credit, you will need to create an account on the advent of code website.
Happy Coding!
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
# -------------------------------------- | |
# Now compatible with Pelican 4.0.x! | |
# -------------------------------------- | |
# Added by me | |
import time |
#!/bin/bash | |
# ------------------------------------------------------------------ | |
# Git Daily Scrum (stand-up meeting) helper. | |
# | |
# The script helps you remember what you did last time and facilitates | |
# writing daily log for remote teams. Be aware that it assumes that | |
# meetings are conducted at the same time every day. | |
# | |
# Installation: | |
# 1. Place the script in some folder, e.g. your home: |
$ FILE=/some/path/to/file.txt | |
################################### | |
### Remove matching suffix pattern | |
################################### | |
$ echo ${FILE%.*} # remove ext | |
/some/path/to/file | |
$ FILE=/some/path/to/file.txt.jpg.gpg # note various file exts |
#!/bin/bash | |
# | |
# Backup all databases to separate archives. | |
# 1. Each table is dumped into separate *.sql file. | |
# 2. Each view is dumped into separate file with DEFINER=CURRENT_USER. | |
# 3. All routines are dumped into routines-dbname.sql, | |
# 4. All files are added to archive dbname.7z, compressed with 7-zip, max compression. | |
# | |
# Usage: mysqlback.sh /output/directory | |
# |
The following describes the mandatory requirements that must be adhered to for autoloader interoperability.
\ <Vendor Name> \ (<Namespace>)* \ <Class Name>
DIRECTORY_SEPARATOR
when loading from the file system.DIRECTORY_SEPARATOR
. The "_" character has no special meaning in the namespace.# Next time you need to install something with python setup.py -- which should be never but things happen. | |
python setup.py install --record files.txt | |
# This will cause all the installed files to be printed to that directory. | |
# Then when you want to uninstall it simply run; be careful with the 'sudo' | |
cat files.txt | xargs sudo rm -rf | |
<?php | |
/** | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* |