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
<?php | |
// Set your access token here | |
define('ACCESS_TOKEN', 'your_access_token_here'); | |
// Make sure we have an HTTP_ACCEPT header, | |
// and if so, make it lower-case for easier string matching | |
if(isset($_SERVER['HTTP_ACCEPT'])) | |
$_SERVER['HTTP_ACCEPT'] = strtolower($_SERVER['HTTP_ACCEPT']); | |
else |
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/sh | |
# Max number of concurrent Redis connections before we back off | |
CONN_LIMIT=10000 | |
# Check to make sure all arguments were passed | |
DO_EXIT=0 | |
if [ "$1" == "" ]; then | |
echo "Please provide a list name (in quotes) as first argument." |
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
/* Elapsed time types - for easy-to-use measurements of elapsed time | |
* http://www.pjrc.com/teensy/ | |
* Copyright (c) 2011 PJRC.COM, LLC | |
* | |
* 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: |
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
#define MAXTIMINGS 85 | |
#define cli noInterrupts | |
#define sei interrupts | |
#define DHT11 11 | |
#define DHT22 22 | |
#define DHT21 21 | |
#define AM2301 21 |
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
char srvIP[] = "256.256.256.256"; | |
char srvHost[] = "myhost.mydomain.tld"; | |
int srvPort = 80; | |
char srvPath[] = "/?l=test1"; | |
void setup() { | |
delay(5000); | |
pinMode(D7, OUTPUT); |
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 <math.h> | |
class Thermistor { | |
private: | |
int _pin; | |
int _resistor; | |
int _temp_raw; | |
float _temp_k; | |
float _temp_c; | |
float _temp_f; |
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 <math.h> | |
#define MAXTIMINGS 85 | |
#define cli noInterrupts | |
#define sei interrupts | |
#define DHT11 11 | |
#define DHT22 22 | |
#define DHT21 21 |
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
#ifndef OneWire_h | |
#define OneWire_h | |
#include <inttypes.h> | |
// you can exclude onewire_search by defining that to 0 | |
#ifndef ONEWIRE_SEARCH | |
#define ONEWIRE_SEARCH 1 | |
#endif | |
// You can exclude CRC checks altogether by defining this to 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
#define MY_ADC_SAMPLING_TIME ADC_SampleTime_239Cycles5 | |
uint8_t My_adcInitFirstTime = true; | |
uint8_t My_adcChannelConfigured = NONE; | |
PinMode My_digitalPinModeSaved = (PinMode)NONE; | |
void My_ADCInit() | |
{ | |
ADC_InitTypeDef ADC_InitStructure; |
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
#ifndef CONFIGURATION_H | |
#define CONFIGURATION_H | |
// This configuration file contains the basic settings. | |
// Advanced settings can be found in Configuration_adv.h | |
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration | |
//=========================================================================== | |
//============================= DELTA Printer =============================== | |
//=========================================================================== |
NewerOlder