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
function [outIm] = makeMask(bg, im, tol) | |
%bg - background image | |
%im - input image | |
%tol - tolerance | |
[h,w] = size(bg); | |
outIm = false(h, w); | |
for ch = 1:h | |
for cw = 1:w | |
imPix = im(ch,cw); | |
bgPix = bg(ch,cw); |
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
Grids for different needs | |
Different people need grids for different reasons. There are all sorts of grids already operating all around you. | |
National grids are hosted by one country. Such grids are useful in emergency situations, such as earthquakes or terrorist attacks. National grids can also support scientific investigations, such as studies of climate change, space station design and environmental cleanup. | |
Project grids are created to work on a specific goal. They are typically contructed from shared resources for a limited time and are designed to meet the needs of multi-institutional research groups and "virtual teams". The LHC Computing Grid (LCG) is an example of a project grid; it was set up to help with the Large Hadron Collider high energy physics experiment. | |
Private grids are sometimes called local grids or intra-grids, and are used by institutions such as hospitals and corporations. These grids are relatively small and centrally managed. | |
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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#google_map_directions { | |
left: 820px; | |
top: 260px; | |
position: absolute; |
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
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
<link rel="import" href="../yt-video/yt-search-video.html"> | |
<polymer-element name="my-element"> |
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
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
<link rel="import" href="../yt-video/yt-search-video.html"> | |
<polymer-element name="my-element"> |
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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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
{"light":1,"light_status":"off","somedata":"Hello world!"} |
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
<html> | |
<!-- License: LGPL 2.1 or QZ INDUSTRIES SOURCE CODE LICENSE --> | |
<head><title>QZ Print Plugin</title> | |
<script type="text/javascript" src="js/3rdparty/deployJava.js"></script> | |
<script type="text/javascript" src="js/qz-websocket.js"></script> | |
<script type="text/javascript"> | |
/** | |
* Re-use the new WebSockets deployment if available. If not, fallback on the Oracle deployment |
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 <ArduinoJson.h> | |
int my_code[75]; | |
void setup() { | |
delay(2000); | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
//Assign HttpServer return string to this json | |
char json[] = "{\"data\":[38000,1,69,340,169,20,20,20,20,20,64,20,20,20,20,20,20,20,20,20,20,20,64,20,64,20,20,20,64,20,64,20,64,20,64,20,64,20,20,20,64,20,20,20,20,20,20,20,20,20,20,20,20,20,64,20,20,20,64,20,64,20,64,20,64,20,64,20,64,20,1544,340,85,20,3663]}"; | |
StaticJsonBuffer<1000> jsonBuffer; //make sure to change it and keep it max as per your json length |
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
*The gate resistor: a bit of theory* | |
When cruyising the internet for Triac switches, you may have come across a large diversion | |
in the value of the gate resistor value. My choice usually is to take the lowest value that | |
will still protect the gate and the optocoupler. Reader Mali Lagunas did some research in | |
the theory behind the criteria to choose the value of the gate resistor. | |
Which i will copy below: | |
The resistor when placed in this circuit, will have two main effects: | |
a) It will limit/provide the current going into the gate of the triac (I_{GT}) |
OlderNewer