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 UsePolyTree | |
using System; | |
using System.Diagnostics; | |
using System.Text; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Drawing2D; | |
using System.Drawing.Imaging; | |
using System.IO; |
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
-------------------------------------------------------------------- | |
--- | |
----------- | |
-- -- | |
-- GNAT EXAMPLE -- | |
-- -- | |
-- Copyright (C) 2014, Free Software Foundation, Inc. -- | |
-- -- | |
-- GNAT is free software; you can redistribute it and/or modify it under -- | |
-- terms of the GNU General Public License as published by the Free Soft- -- |
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> | |
<meta http-equiv="X-UA-Compatible" content="chrome=1"/> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<title>Visual CAM</title> | |
<script src="webapp/libs/require.js"></script> | |
<script src="webapp/config.js"></script> | |
<script> | |
requirejs.config({ |
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 <stm32f4xx.h> | |
#include "stm32f4xx_conf.h" | |
#include "stm32f4_discovery.h" | |
#include "math.h" | |
#include "arm_math.h" | |
uint16_t counter = 0; | |
void sendCounter(); |
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 <stm32f4xx.h> | |
#include "stm32f4xx_conf.h" | |
#include "stm32f4_discovery.h" | |
#include "math.h" | |
#include "arm_math.h" | |
volatile uint16_t counter = 0; | |
volatile uint16_t savedCounter = 0; | |
uint16_t parallelPins = GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7 | GPIO_Pin_8 | GPIO_Pin_9 | GPIO_Pin_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
"use strict"; | |
define(['libs/svg'], (function () { | |
SVG.Marker = SVG.invent({ | |
create: 'marker', | |
inherit: SVG.Container, | |
extend: { | |
getRef: function () { | |
return 'url(#' + this.attr('id') + ')' | |
}, | |
update: function (block) { |
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 struct __attribute__((__packed__, aligned (4))) { | |
uint8_t bLength, bDescriptorType; | |
uint8_t bcdUSBL, bcdUSBH; | |
uint8_t bDeviceClass, bDeviceSubClass, bDeviceProtocol, bMaxPacketSize; | |
uint8_t idVendorL, idVendorH; | |
uint8_t idProductL, idProductH; | |
uint8_t bcdDeviceL, bcdDeviceH; | |
uint8_t iManufacturer, iProduct, iSerialNumber; | |
uint8_t bNumConfigurations; | |
} deviceDescriptor = { |
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
test("jsparse number evaluation", function () { | |
var jp = jsparse; | |
var number = jp.action(jp.repeat1(jp.range('0', '9')), function (ast) { | |
return ast.join(''); | |
}); | |
var decimalPart = jp.action(jp.sequence('.', number), function (ast) { | |
return ast.join(''); | |
}); | |
var integerAndDecimal = jp.action(jp.sequence(number, jp.optional(decimalPart)), function (ast) { | |
return ast[1] !== false ? ast[0] + ast[1] : ast[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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>modbus ?</title> | |
</head> | |
<body> | |
modbus ?<br> | |
<script src="serial.js"></script> | |
<label> | |
DCD: |
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 "stm32f4xx_conf.h" | |
#include "stm32f4_discovery.h" | |
template<uint32_t GPIO_CLK, intptr_t GPIO_PORT_ADDR> class GPIOPort { | |
public: | |
static GPIOPort& port() { | |
static GPIOPort instance; | |
return instance; | |
}; |
OlderNewer