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
" Set colorscheme to solarized | |
colorscheme solarized | |
" Change the Solarized background to dark or light depending upon the time of | |
" day (5 refers to 5AM and 17 to 5PM). Change the background only if it is not | |
" already set to the value we want. | |
function! SetSolarizedBackground() | |
if strftime("%H") >= 5 && strftime("%H") < 17 | |
if &background != 'light' | |
set background=light |
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 <Encoder.h> | |
#include <Bounce.h> | |
#include <Keyboard.h> | |
const int pinClk = 6; | |
const int pinDt = 7; | |
const int prevButton = 8; | |
const int nextButton = 9; | |
const int pinButton = 10; |
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 <Servo.h> | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
const int servo_pin = D6; | |
const char* ssid = "<your WiFi SSID>"; | |
const char* password = "<your WiFi password>"; | |
const char* mqtt_server = "<your MQTT server name or IP>"; | |
const char* mqtt_client_name = "hue_bar_base_1"; | |
const char* mqtt_topic_pub = "lightbar/1/stat"; |
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
Debugger entered--Lisp error: (error "In ‘Find Files’ source: ‘helm-find-files-get-candidates’ \n (user-error \"Not a Tramp file name: \\\"/copernicus:\\\"\")") | |
signal(error ("In ‘Find Files’ source: ‘helm-find-files-get-candidates’ \n (user-error \"Not a Tramp file name: \\\"/copernicus:\\\"\")")) | |
error("In `%s' source: `%s' %s %s" "Find Files" helm-find-files-get-candidates "\n" "(user-error \"Not a Tramp file name: \\\"/copernicus:\\\"\")") | |
#f(compiled-function (source candidate-fn candidate-proc &optional e) #<bytecode 0x410a42e9>)(((name . "Find Files") (resume lambda nil (helm-ff-setup-update-hook) (setq helm-ff-default-directory "/" helm-ff-last-expanded nil)) (header-name lambda (name) (concat name (substitute-command-keys helm-find-files-doc-header))) (init lambda nil (setq helm-ff-auto-update-flag helm-ff-auto-update-initial-value) (setq helm-ff--auto-update-state helm-ff-auto-update-flag) (helm-set-local-variable 'bookmark-make-record-function (function helm-ff-make-bookmark-record)) (require |
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
const express = require('express') | |
const app = express() | |
const config = require('./config'); | |
const request = require('request'); | |
app.get('/', (req, res) => { | |
//this will check if the code parameter is in the url, if not the | |
//most likely case is that this is the user's inital visit to oauth | |
//and we need to redirect them (Step 1) if there is a code, it most | |
//likely means they were redirected here from zoom oauth screen |
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
2018-08-05 10:12:43,341 /home/pi/oprint/bin/python -m pip install https://github.com/foosel/OctoPrint/archive/1.3.9.zip | |
2018-08-05 10:12:46,792 > Collecting https://github.com/foosel/OctoPrint/archive/1.3.9.zip | |
2018-08-05 10:12:48,795 > Downloading https://github.com/foosel/OctoPrint/archive/1.3.9.zip (5.0MB) | |
2018-08-05 10:12:55,736 > Requirement already satisfied (use --upgrade to upgrade): flask<0.11,>=0.10.1 in /home/pi/oprint/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg (from OctoPrint==1.3.9) | |
2018-08-05 10:12:55,737 > Requirement already satisfied (use --upgrade to upgrade): Jinja2<2.9,>=2.8.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint==1.3.9) | |
2018-08-05 10:12:55,738 > Requirement already satisfied (use --upgrade to upgrade): werkzeug<0.9,>=0.8.3 in /home/pi/oprint/lib/python2.7/site-packages/Werkzeug-0.8.3-py2.7.egg (from OctoPrint==1.3.9) | |
2018-08-05 10:12:55,738 > Requirement already satisfied (use --upgrade to upgrade): tornado==4.5.3 in /home/pi/oprint/lib/python2.7/site-p |
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
2018-08-04 15:17:16,821 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- | |
2018-08-04 15:17:16,821 - octoprint.server - INFO - OctoPrint 1.3.8 | |
2018-08-04 15:17:16,824 - octoprint.plugin.core - INFO - 15 plugin(s) registered with the system: | |
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements | |
| Autoselect Plugin (0.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_autoselect | |
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard | |
| !CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/cura | |
| Custom Control Editor (0.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_customControl | |
| Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery | |
| Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging |
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
$rate_limit_left = &min( | |
0+$rate_limit_ref->{'resources'}->{'statuses'}->{'\/statuses\/home_timeline'}->{'remaining'}, | |
&min( | |
0+$rate_limit_ref->{'resources'}->{'statuses'}->{'\/statuses\/mentions_timeline'}->{'remaining'}, | |
0+$rate_limit_ref->{'resources'}->{'search'}->{'\/search\/tweets'}->{'remaining'})); | |
$rate_limit_rate = &min( | |
0+$rate_limit_ref->{'resources'}->{'statuses'}->{'\/statuses\/home_timeline'}->{'limit'}, | |
&min( | |
0+$rate_limit_ref->{'resources'}->{'statuses'}->{'\/statuses\/mentions_timeline'}->{'limit'}, |
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
;; This is an attempt to mimic what the "CtrlP Funky" plug-in | |
;; for Vim does, allowing a "fuzzy search" of functions within | |
;; the current buffer. | |
;; | |
;; Because this uses completing-read (in my config., this is | |
;; handled by helm, which is awesome), it isn't actually | |
;; "fuzzy," but it gets the job done. | |
;; | |
;; Note: This is my first real attempt at writing elisp so it | |
;; might not be "proper." |
NewerOlder