Skip to content

Instantly share code, notes, and snippets.

$fn=60;
difference() {
cylinder(h=3, r=1);
translate([0, 0, -0.1])
cylinder(h=1.1, r=0.125);
}
# number of comics read per week
READ_COMICS = 400
# number of comics released per week
RELEASED_COMICS = 3
START = 1700
END = 2140
import random
import matplotlib
export TERM=xterm-color
# set up android home and build the app
export ANDROID_HOME=/mnt/storage/gits/Android/ && gradle-3.4.1 build && \
# sign the apk using the keystore "my.keystore"
/mnt/storage/AndroidSDK/build-tools/25.0.2/apksigner sign --ks my.keystore app/build/outputs/apk/app-release-unsigned.apk && \
# uninstall existing app
# adb uninstall com.serwylo.lexica && \
# install the new version
# adb install app/build/outputs/apk/app-release-unsigned.apk && \
echo "All done. Nothing left to do baby!"
diff --git a/src/globals.h b/src/globals.h
index 9cf8455..5b06f86 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -36,8 +36,7 @@ EXTERN long Columns INIT(= 80); /* nr of columns in the screen */
* "LineOffset[n]" is the offset from ScreenLines[] for the start of line 'n'.
* The same value is used for ScreenLinesUC[] and ScreenAttrs[].
*
- * Note: before the screen is initialized and when out of memory these can be
- * NULL.
@BlitzKraft
BlitzKraft / default_leftonly.json
Created July 31, 2016 19:36
Bash prompt with git branch and condensed directory paths
# Remove the comments
# The path is /usr/local/lib/python2.7/dist-packages/powerline/config_files/themes/shell/default_leftonly.json
{
"segments": {
"left": [
{
"function": "powerline.segments.common.net.hostname",
"priority": 10
},
### importing libraries
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
import csv
import time
#Creating an object to contains the contacts
class contact:
"This represents the contacts within our contact list"