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 <avr/io.h> | |
#include <util/delay.h> | |
#include <stdint.h> | |
#include <avr/interrupt.h> | |
#define bitRead(value, bit) (((value) >> (bit)) & 0x01) | |
#define bitSet(value, bit) ((value) |= (1UL << (bit))) | |
#define delay(ms) _delay_ms(ms) | |
#define PIN 2 |
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
Module.register("helloworld",{ | |
/* ... */ | |
getTemplate: function () { | |
// Should return a String: the template filename. | |
// We could also allow users to return a template string, | |
// and check if the string ends with `.html` in that case | |
// use the file, otherwiste the literal string. |
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 <Arduino.h> | |
#include <LedControl.h> | |
#define SPINNER_SPEED 5 | |
#define SPINNER_LENGTH 2 | |
LedControl lc=LedControl(3, 4, 5, 1); | |
long num = 0; | |
void showNumber(long number, byte pos = 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 <Arduino.h> | |
#include <FastLED.h> | |
#define LED_PIN 7 | |
#define BUTTON_PIN 8 | |
CRGB leds[1]; | |
void setup() { | |
FastLED.addLeds<NEOPIXEL, LED_PIN>(leds, 1); |
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 <Arduino.h> | |
#include <Keyboard.h> | |
#define BUTTON_A 3 | |
#define BUTTON_B 4 | |
#define BUTTON_C 5 | |
#define BUTTON_D 6 | |
void setup() { | |
pinMode(BUTTON_A, INPUT_PULLUP); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AWS S3 File Upload</title> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.12.min.js"></script> | |
</head> | |
<body> | |
<input type="file" id="file-chooser" /> |
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
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/MichMich/YoutubeDownloader" | |
} | |
], | |
"require": { | |
"masih/youtubedownloader": "*" | |
} |
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
class TestView: UIView { | |
let gestureRecognizer : UITapGestureRecognizer | |
init(frame: CGRect) { | |
gestureRecognizer = UITapGestureRecognizer(target: self, action: "tap") //This does not work, It doesn't know self. | |
super.init(frame: frame) | |
} |
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 <Adafruit_NeoPixel.h> | |
#define PIN_NEOPIXELS 7 | |
#define PIN_STROBE 4 | |
#define PIN_RESET 5 | |
#define PIN_LEFT 0 //analog | |
#define PIN_RIGHT 1 //analog | |
#define NUMLEDSPERSEGMENT 8 | |
#define NUMLEDS NUMLEDSPERSEGMENT * 2 |
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
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
self.view.backgroundColor = [UIColor blackColor]; | |
//The following line creates a shimmer timing problem. | |
FBShimmeringView *shimmerView = [[FBShimmeringView alloc]init]; | |
//The following line works, but is unneccecery for common autolayout practices. |