A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| <a href="http://lemonly.com/work/ninja-turtle-stats-infographic" title="Ninja Turtle Stats Infographic"> | |
| <img src="http://lemonly.com/wp-content/uploads/2014/08/Ninja-Turtles-080714_FINAL-960x2095.jpg"style="max-width: 100%" alt="Ninja Turtle Stats Info graphic Design by Lemonly" /> | |
| </a> | |
| Learn more about <a href="http://lemonly.com/work/ninja-turtle-stats-infographic">Ninja Turtles </a> and <a href="http://lemonly.com">Infographic Design</a> from Lemonly. |
| #powershell script port of https://github.com/maxhauser/semver/ | |
| function toSemVer($version){ | |
| $version -match "^(?<major>\d+)(\.(?<minor>\d+))?(\.(?<patch>\d+))?(\-(?<pre>[0-9A-Za-z\-\.]+))?(\+(?<build>[0-9A-Za-z\-\.]+))?$" | Out-Null | |
| $major = [int]$matches['major'] | |
| $minor = [int]$matches['minor'] | |
| $patch = [int]$matches['patch'] | |
| if($matches['pre'] -eq $null){$pre = @()} | |
| else{$pre = $matches['pre'].Split(".")} |
If you want to go from 32 to 64 bit Cygwin but keep all the packages[1], you might find yourself in a spot where you would like to export the list of cygwin packages and also be able to install cygwin with all these packages again. I will tell you how. Open your Cygwin shell and enter
cygcheck -c -d | sed -e "1,2d" -e 's/ .*\$//' > packagelist
This will simply dump a list of installed packages. To install Cygwin 64 with these packages selected, download setup-x86_64[2] and execute it with the command line parameters
./setup-x86_64 -P `awk 'NR==1{printf \$1}{printf ",%s", \$1}' packagelist`
{
address = "irc.twitch.tv";
chatnet = "Twitch";
NOTE: If you want to keep the history for a specific folder in the master branch, just skip steps in lines 3,4,5,6,7
git clone <git-repository-url>
cd <git-repository-dir>
git checkout <branch-name> # line 3; Checkout the branch of interest
git merge --strategy=ours master # line 4; keep the content of this branch only and record a merge
git checkout master # line 5; Go back to the master branch
Unfortunately CenturyLink provisions their fiber to the home with a PPPoE authentication over vlan 201, this makes replacing the router more difficult than it should be. I also had to call CenturyLink support to get the password for the PPPoE connection.
cnmac0 is the egress interface on my EdgeRouter Lite.
You also need to add match on pppoe0 scrub (max-mss 1452)
| #include <time.h> // Robert Nystrom | |
| #include <stdio.h> // @munificentbob | |
| #include <stdlib.h> // for Ginny | |
| #define r return // 2008-2019 | |
| #define l(a, b, c, d) for (i y=a;y\ | |
| <b; y++) for (int x = c; x < d; x++) | |
| typedef int i;const i H=40;const i W | |
| =80;i m[40][80];i g(i x){r rand()%x; | |
| }void cave(i s){i w=g(10)+5;i h=g(6) | |
| +3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u |
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.