Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#! python3 | |
import os | |
import sys | |
import argparse | |
from PyPDF2 import PdfFileReader, PdfFileWriter | |
def split_pdf(input, output, stepsize=1): | |
output = output or os.path.splitext(input)[0] |
This file contains 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
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#include <uartWIFI.h> | |
#define SSID "my_network" | |
#define PASS "my_password" | |
#define ONEWIRE_BUS 10 | |
#define THINGSPEAK_IP "184.106.153.149" | |
#define THINGSPEAK_KEY "my_thingspeak_key" |
This file contains 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
# Your keymap | |
# | |
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors | |
# to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# | |
# Here's an example taken from Atom's built-in keymap: |
This file contains 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
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
auto wlan0 | |
allow-hotplug wlan0 | |
iface wlan0 inet dhcp | |
wpa-ssid my_ssid | |
wpa-psk my_password |
This file contains 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
#! python3.4 | |
from setuptools import setup | |
import os | |
import py2exe | |
import matplotlib | |
includes = ["sip", | |
"PyQt5", | |
"PyQt5.QtCore", | |
"PyQt5.QtGui", |
This file contains 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
#!python3.4 | |
""" | |
Script for starting a PyQt5 Application. | |
""" | |
import sys | |
from PyQt5.QtWidgets import QApplication | |
from PyQt5.Qt import QLocale, QTranslator | |
from myapp import VERSION |
This file contains 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
#!/bin/bash | |
TESTIP=192.168.1.1 | |
ping -c4 ${TESTIP} > /dev/null | |
if [ $? != 0 ] | |
then | |
logger -t $0 "WiFi seems down, restarting" | |
ifdown --force wlan0 |
This file contains 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
Show hidden characters
{ | |
"user": { | |
// transformations | |
"transformations": { | |
"reStructuredText": { | |
"new-buffer": 1, | |
"scope": { | |
"text.html.markdown": "markdown" | |
}, | |
"syntax_file": "Packages/RestructuredText/RestructuredText.tmLanguage", |
This file contains 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
{ | |
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
"font_size": 14, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": | |
[ | |
80 |