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
/* A single pin of the microcontroller to which a row or column is connected. */ | |
typedef struct { | |
volatile uint8_t *Direction; | |
volatile uint8_t *Name; | |
uint8_t Number; | |
} Pin_t; | |
/* This part of the key matrix is stored in the Flash to save SRAM space. */ | |
typedef struct { | |
const uint8_t ColNum; |
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
uint8_t isSecondElapsed = 0; | |
int main(void) | |
{ | |
while (1) { | |
_delay_us(1000); | |
isSecondElapsed = 1; | |
} | |
} |
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
const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = | |
{ | |
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device}, | |
.USBSpecification = VERSION_BCD(01.10), | |
.Class = USB_CSCP_NoDeviceClass, | |
.SubClass = USB_CSCP_NoDeviceSubclass, | |
.Protocol = USB_CSCP_NoDeviceProtocol, | |
.Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE, |
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
// If separated storage data is available then extract it. | |
var hasStoredData = false; | |
if (project.userData.publishWebsite) { | |
var storedData = project.userData.publishWebsite; | |
if (storedData[locale]) { | |
hasStoredData = true; | |
scope.servingDomainPrefix = storedData[locale].servingDomainPrefix; | |
scope.servingDomainPostfix = storedData[locale].servingDomainPostfix; | |
} | |
} |
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
<html ng-app> | |
<head> | |
<title>Angular.dart nested controllers</title> | |
</head> | |
<body> | |
<a href="#" id="open">open</a> | |
<div outer-controller ng-switch="outerCtrl.shouldShowInnerController"> | |
<input type="checkbox" ng-model="outerCtrl.shouldShowInnerController"> | |
<div inner-controller ng-switch-when="true"> | |
Your name: <input ng-model="innerCtrl.yourName"> |
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
function Project(basedOnJsObject) { | |
this.code = basedOnJsObject.code; | |
} | |
Project.prototype = { | |
getCode: function() { | |
return this.code; | |
} | |
} |
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
"use strict"; | |
var StringSet = /* StringSet */ function() { | |
this.set = {}; | |
this.add = /* bool */ function(/* String */ string) { | |
var contains = this.contains(string); | |
this.set[string] = true; | |
return !contains; | |
}; |
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 XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Flash embed code converter</title> | |
</head> | |
<body> | |
<form action=""> | |
Source Flash embed code:<br /> | |
<textarea id="source" cols="80" rows="10"></textarea><br /><br /> |
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
<?php | |
$url = $_GET["url"]; | |
$args = explode("|", $_GET["args"]); | |
?> | |
<html> | |
<head> | |
<title>GET to POST</title> | |
</head> | |
<body onload="document.form.submit()"> | |
<form name="form" action="<?php echo $url ?>" method="post"> |
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
<?php | |
$filename = dirname('.') . $_SERVER['PHP_SELF']; | |
if (isset($_GET['download-source'])) { | |
header("Content-type: application/force-download"); | |
$file = fopen(__FILE__, 'r'); | |
$content = fread($file, filesize(__FILE__)); | |
print $content; | |
die(); | |
} |