This file contains hidden or 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
$ git reflog | head -30 | |
0ea16ac HEAD@{0}: rebase finished: returning to refs/heads/master | |
0ea16ac HEAD@{1}: rebase: qemu: Update to version 2.8.0 | |
aba292b HEAD@{2}: rebase: WW: Update to version 1.3 | |
3cd56f0 HEAD@{3}: rebase: zsync: Add license, fix livecheck, add sha256 hash | |
8f93da5 HEAD@{4}: rebase: nginx: update to version 1.11.9 | |
526df92 HEAD@{5}: rebase: wireshark2: update to version 2.2.4 | |
4e2dad4 HEAD@{6}: rebase: checkout xonsh-update-0.5.2 | |
3ee8219 HEAD@{7}: checkout: moving from xonsh-update-0.5.2 to master | |
4e2dad4 HEAD@{8}: commit: port xonsh: upgrade to 0.5.2, add variants for python 3.4 and 3.6; nomaintainer |
This file contains hidden or 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
anddam@bibook /opt/macports/ports-git/shells/xonsh master $ git help rebase | |
anddam@bibook /opt/macports/ports-git/shells/xonsh master $ git branch | |
* master | |
wip | |
xonsh-update-0.5.2 | |
anddam@bibook /opt/macports/ports-git/shells/xonsh master $ git log upstream/master..xonsh-update-0.5.2 | |
commit 4e2dad4b799dc60bb39617baab435e3302dc6ea3 | |
Author: Andrea D'Amore <[email protected]> | |
Date: Wed Jan 25 17:51:18 2017 +0100 |
This file contains hidden or 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
anddam@bibook /opt/local/etc/select/ipython3 $ ls -l | |
total 32 | |
-rw-r--r-- 1 root admin 51 Sep 19 01:13 base | |
lrwxr-xr-x 1 root admin 12 Dec 9 08:43 current -> py35-ipython | |
-rw-r--r-- 1 root admin 6 Sep 19 01:13 none | |
-rw-r--r-- 1 root admin 228 Dec 28 15:55 py36-ipython | |
anddam@bibook /opt/local/etc/select/ipython3 $ sudo port -d select --set ipython3 py36-ipython | |
DEBUG: Copying /Users/anddam/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences | |
DEBUG: action_select [ipython3 py36-ipython] [ports_select_set yes]... | |
DEBUG: The 'set' command was specified. |
This file contains hidden or 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
> ACPI Error: [\134_SB_.PCI0.LPCB.H_EC.ECAV] Namespace lookup failure, AE_NOT_FOUND (20160527/psargs-391) | |
> ACPI Error: Method parse/execution failed [\134_TZ.TZ00._TMP] (Node 0xfffff80002b5da00), AE_NOT_FOUND (20160527/psparse-559) | |
> ACPI Error: [\134_SB_.PCI0.LPCB.H_EC.ECAV] Namespace lookup failure, AE_NOT_FOUND (20160527/psargs-391) | |
> ACPI Error: Method parse/execution failed [\134_TZ.TZ01._TMP] (Node 0xfffff80002b5d8c0), AE_NOT_FOUND (20160527/psparse-559) | |
> SMP: AP CPU #1 Launched! | |
> Timecounter "TSC-low" frequency 1656082025 Hz quality 1000 | |
> Trying to mount root from zfs:freenas-boot/ROOT/9.10.2-U1 []... | |
> GEOM_RAID5: Module loaded, version 1.3.20140711.62 (rev f91e28e40bf7) | |
> ACPI Error: [\134_SB_.PCI0.LPCB.H_EC.ECAV] Namespace lookup failure, AE_NOT_FOUND (20160527/psargs-391) | |
> ACPI Error: Method parse/execution failed [\134_TZ.TZ00._TMP] (Node 0xfffff80002b5da00), AE_NOT_FOUND (20160527/psparse-559) |
This file contains hidden or 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
anddam@bibook /opt/macports/ports-git d049d33 [1]$ git checkout master | |
error: Your local changes to the following files would be overwritten by checkout: | |
lang/ghc/Portfile | |
Please commit your changes or stash them before you switch branches. | |
error: The following untracked working tree files would be overwritten by checkout: | |
aqua/MacBiff/files/project.pbxproj.patch | |
aqua/doxygen-launcher/Portfile | |
aqua/gimp2-launcher/Portfile | |
aqua/gimp2-launcher/files/patch-Info.plist.diff | |
aqua/nomacs/files/patch-Info.plist.in.diff |
This file contains hidden or 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
anddam@bibook /opt/macports/ports-git/aqua/MacBiff master $ port -d sync | |
---> Updating the ports tree | |
Synchronizing local ports tree from file:///opt/macports/ports-local | |
DEBUG: system: /opt/local/bin/portindex /opt/macports/ports-local | |
Creating port index in /opt/macports/ports-local | |
Total number of ports parsed: 0 | |
Ports successfully parsed: 0 | |
Ports failed: 0 | |
Up-to-date ports skipped: 11 |
This file contains hidden or 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
def subsequences(number): | |
"Generator for digit subsequences of an integer number" | |
number = str(number) | |
number_length = len(number) | |
for start in range(0, number_length): | |
for end in range(start + 1, number_length + 1): | |
yield int(number[start:end]) |
This file contains hidden or 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
Elevation | E355P | E355S | |
---|---|---|---|
1 | 3491.0 | 1235.0 | |
2 | 6022.0 | 1815.0 | |
3 | 9775.0 | 2686.0 |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or 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
0.2 0.215 0.23 0.245 0.26 0.275 0.29 0.305 0.32 0.335 ... 3.86 3.875 3.89 3.905 3.92 3.935 3.95 3.965 3.98 3.995 | |
2016-12-22 17:54:00 15813.467929 14887.838834 14613.687553 14084.008962 13596.455128 13023.190098 12606.648105 11997.829222 11092.153403 10130.863964 ... 6.176847 8.146187 6.239691 5.484841 7.429926 7.870213 5.954099 6.694366 7.066891 5.712091 | |
2016-12-22 17:55:00 16738.570470 15881.890027 15465.622366 14994.054151 14474.839918 13986.117293 13484.822259 12659.722747 11461.149918 10579.005758 ... 7.150821 6.621443 5.383635 5.890425 6.909590 6.063836 8.476596 6.015457 6.364821 5.174433 | |
2016-12-22 17:56:00 18441.908980 17461.649851 17056.215456 16751.147640 16249.311817 15596.481853 14925.885274 13684.411472 12460.506935 11432.622333 ... 6.241594 7.340958 6.567370 6.686077 7.683673 7.006509 6.092857 5.912916 6.023106 7.151290 | |
2016-12-22 17:57:00 20119.346592 19256.138115 18943.580847 18411.964321 17706.549378 16874.568822 15963.686193 14778.328439 13468.600066 12325.818120 ... 7.714033 7.487774 5.9040 |
This file contains hidden or 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
def permutate(string): | |
"Generate permutations of a string" | |
if not string: | |
yield '' | |
for head in string: | |
for tail in permutate([l for l in string if l != head]): | |
yield head + tail |