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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <script> | |
| // need to manually set re.lastIndex = 0; or this happens | |
| var s1 = "bc11bc22f"; | |
| var s2 = "bc33bc44g"; | |
| var re = /.*?(bc..)/g; | |
| var result1 = re.exec(s1);//bc11 | |
| var result2 = re.exec(s2);//bc44 |
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 Core | |
| { | |
| public class WordList | |
| { | |
| private static var _instance:WordList; | |
| public function WordList() | |
| { | |
| } | |
| public static function getInstance():WordList |
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 Managers | |
| { | |
| import Animation.*; | |
| import DDW.Managers.StateManager; | |
| import DDW.Managers.StateObject; | |
| import Screens.*; | |
| import flash.display.Sprite; |
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
| /* | |
| Freeware. source [email protected] | |
| ADC pin: P1.0 | |
| PWM signal pin: P1.2 | |
| ADC signal is just a light sensor with a 1K resistor to 3.3V | |
| */ |
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
| /* | |
| Freeware. source [email protected] | |
| ADC pin: P1.0 | |
| PWM signal pin: P1.2 | |
| ADC signal is just a light sensor with a 1K resistor to 3.3V | |
| */ |
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
| fl.outputPanel.clear(); | |
| var trace = fl.trace; | |
| fl.showIdleMessage(false); | |
| var doc = fl.getDocumentDOM(); | |
| var tl = fl.getDocumentDOM().getTimeline(); | |
| var firstGuideLayer = null; | |
| function main() | |
| { | |
| var guideLayers = getGuideLayers(); |
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
| -- File: Blink.VHD ------- | |
| library IEEE; | |
| use IEEE.STD_LOGIC_1164.ALL; | |
| use IEEE.STD_LOGIC_ARITH.ALL; | |
| use IEEE.STD_LOGIC_UNSIGNED.ALL; | |
| entity Blink is | |
| Port ( | |
| PB : in STD_LOGIC_VECTOR(7 downto 0); |
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 TEST | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace ConsoleApplication1 | |
| { | |
| public class Program |
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 <AFMotor.h> | |
| #include <ServoTimer1.h> | |
| //#define DEBUG 1 | |
| int analogPin = 0; | |
| int sensorPin = 2; | |
| int servo1Pin = 9; | |
| AF_Stepper motorX(48, 2); |
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
| void loop() | |
| { | |
| if (Serial.available()) | |
| { | |
| char ch = Serial.read(); | |
| switch(ch) { | |
| case '0'...'9': | |
| serialReadNum = serialReadNum * 10 + ch - '0'; |