Skip to content

Instantly share code, notes, and snippets.

@temptemp3
temptemp3 / .block
Created February 20, 2019 14:34 — forked from mbostock/.block
D3 Show Reel
license: gpl-3.0
@temptemp3
temptemp3 / .block
Created February 20, 2019 14:33 — forked from mbostock/.block
Collision Detection
license: gpl-3.0
@temptemp3
temptemp3 / .block
Created February 20, 2019 14:31 — forked from mbostock/.block
Population Pyramid
license: gpl-3.0
@temptemp3
temptemp3 / LICENSE.md
Last active February 20, 2019 14:30 — forked from tommaybe/LICENSE.md
Day / Hour Heatmap

Copyright (c) 2016, Tom May

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTH

@temptemp3
temptemp3 / remove-last-line-sed.html
Last active February 18, 2019 23:17
Remove last line in file using sed
sed '$ d' -
@temptemp3
temptemp3 / docx-paragraph-align-center.py
Created November 17, 2017 00:24
Align center document paragraphs
from docx import Document
from docx.enum.text import WD_ALIGN_PARAGRAPH
document = Document("test.docx")
for paragraph in document.paragraphs:
paragraph.alignment = WD_ALIGN_PARAGRAPH.CENTER
print paragraph.alignment
document.save('out.docx')
@temptemp3
temptemp3 / git-manual-merge.sh
Created November 17, 2017 00:20
Github merging via command line
#Merging via command line
#If you do not want to use the merge button or an automatic merge cannot be performed, you can perform a manual merge on the command line.
#Step 1: From your project repository, bring in the changes and test.
git fetch origin
git checkout -b branch origin/branch
git merge moomii
@temptemp3
temptemp3 / docker.py
Created November 16, 2017 23:59
docker.py
import docker
client = docker.from_env()
@temptemp3
temptemp3 / sed.md
Last active November 8, 2017 01:07
sed

sed

sed notes

comments

styles style i

# comment here \
 comment continued