A curated list of arrrrrrrrr!
This file contains hidden or 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
// ==UserScript== | |
// @name Distill Video & Audio Downloader from 5000+ sites including Youtube, Support 1080P, 2K, 4k & 8K | |
// @namespace https://distillvideo.com/ | |
// @version 2.1.1 | |
// @date 2018-06-17 | |
// @description Browser extension to download video and audio from Youtube, Twitter, Vimeo, Facebook, Dailymotion, 1tv, VK, youku, bilibili and 5000 more sites for free. Fast and easy to use. | |
// @author DistillVideo.com | |
// @copyright 2018, DistillVideo.com | |
// @homepage https://distillvideo.com/page/extensions | |
// @downloadURL https://distillvideo.com/js/ditillvideo.user.js |
This file contains hidden or 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 the neo pixel library | |
#include <Adafruit_NeoPixel.h> | |
// The number of LEDs being driven. This dictates how much data is expected in each frame read from the serial port. | |
static const int NUM_LEDS = 256; | |
// Parameter 1 = number of pixels in strip | |
// Parameter 2 = pin number (most are valid) | |
// Parameter 3 = pixel type flags, add together as needed: | |
// NEO_RGB Pixels are wired for RGB bitstream |
This file contains hidden or 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
var str = msg.payload; | |
var buf = []; | |
for (var i=0, l = str.length; i < l; i++) { | |
var ascii = str.charCodeAt(i); | |
buf.push(ascii); | |
} | |
buf.push(255); | |
buf.push(255); | |
buf.push(255); |
This file contains hidden or 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 "Nextion.h" | |
const int lightPin = 0; | |
const int hardwareCounterPin = 5; | |
const int samplePeriod = 1000; //in milliseconds | |
const float pulsesPerMile = 4000; | |
const float convertMph = pulsesPerMile/3600; | |
unsigned int count; | |
float mph; |
This file contains hidden or 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
package com.madebyatomicrobot.things | |
import android.app.Activity | |
import android.os.Bundle | |
import android.util.Log | |
import android.widget.SeekBar | |
import android.widget.SeekBar.OnSeekBarChangeListener | |
import android.widget.TextView | |
import com.google.android.things.pio.PeripheralManagerService | |
import com.google.android.things.pio.UartDevice |
This file contains hidden or 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 MASTER_CLOCK 84000000 | |
#include "SamNonDuePin.h" | |
uint32_t clock_a = 42000000; // Sampling frequency in Hz | |
int brightness = 0; // how bright the LED is | |
int fadeAmount = 5; // how many points to fade the LED by | |
const int IOENABLE = 6; // the number of the 12Vio_EN pin |
This file contains hidden or 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
/* | |
Fade | |
Modified 6/6/16 to demonstrate Macchina 2.0 RGB LEDs, | |
also functioning as a HELLO WORLD type sketch. | |
This example shows how to fade an LED on the RGB LED | |
using the analogWrite() function. | |
The analogWrite() function uses PWM, so if |
This file contains hidden or 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 "SamNonDuePin.h" | |
const int LPC = PIN_EMAC_ERX0; // LOW POWER CONTROL pin | |
void setup() { | |
pinModeNonDue(LPC, OUTPUT); | |
digitalWriteNonDue(LPC, LOW); // LOW = no power at +12V_SW/+5V_SW | |
// HIGH = power at +12V_SW/+5V_SW | |
} |
This file contains hidden or 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 "SamNonDuePin.h" | |
const int LPC = PIN_EMAC_ERX0; // LOW POWER CONTROL pin | |
const int PWM_nVPW = PIN_EMAC_EMDC; // PWM/VPW level control | |
void setup() { | |
pinModeNonDue(LPC, OUTPUT); | |
pinModeNonDue(PWM_nVPW, OUTPUT); | |
digitalWriteNonDue(LPC, HIGH); // LOW = no power at +12V_SW/+5V_SW |
NewerOlder