A Pen by Tom Horton on CodePen.
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
.DS_Store | |
node_modules |
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
var gpio = require('rpi-gpio'); | |
var pin = 11; | |
gpio.setup(pin, gpio.OUT, function() { | |
gpio.write(pin, true, function(err) { | |
if (err) throw err; | |
}); | |
}); |
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
diff --git a/src/gpio-admin.c b/src/gpio-admin.c | |
index 38569bb..faea863 100644 | |
--- a/src/gpio-admin.c | |
+++ b/src/gpio-admin.c | |
@@ -27,7 +27,7 @@ static void usage_error(char **argv) { | |
static void allow_access_by_user(unsigned int pin, const char *filename) { | |
char path[PATH_MAX]; | |
- int size = snprintf(path, PATH_MAX, "/sys/devices/virtual/gpio/gpio%u/%s", pin, filename); | |
+ int size = snprintf(path, PATH_MAX, "/sys/class/gpio/gpio%u/%s", pin, filename); |
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 (a) { | |
var b = (a.browser.msie ? "paste" : "input") + ".mask", | |
c = window.orientation != undefined; | |
a.mask = { | |
definitions: { | |
9: "[0-9]", | |
a: "[A-Za-z]", | |
"*": "[A-Za-z0-9]" | |
}, | |
dataName: "rawMaskFn" |
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 (b) { | |
function d(a) { | |
this.input = a; | |
a.attr("type") == "password" && this.handlePassword(); | |
b(a[0].form).submit(function () { | |
if (a.hasClass("placeholder") && a[0].value == a.attr("placeholder")) a[0].value = "" | |
}) | |
} | |
d.prototype = { |
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
<% | |
pageTitle = "Form Title" | |
NetInsightID = "property-mgr-start" | |
RDSendEmailTo = "your-email@duke-energy.com" | |
state = Request.Cookies("state") | |
confirmationMessage = "A confirmation e-mail will be sent to you once processing is complete." | |
submitButtonText = "Submit" | |
formType = "wizard" | |
%> |
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
<% | |
RDSendEmailTo = "your-email@duke-energy.com" | |
pageTitle = "Form Title" | |
NetInsightID = "interest" | |
state = Request.Cookies("state") | |
custServicePhone = "" | |
confirmationMessage = "Thank you for submitting your request." | |
submitButtonText = "Submit" | |
formType = "simple" |
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(){ | |
$('.flexslider').flexslider({ | |
animation: 'slide' | |
}); | |
}); |
NewerOlder