- View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
- View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
- HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
- String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 <Servo.h> | |
Servo myservo; | |
int key_inserted,gear_pedal; | |
boolean stand_up; | |
void setup() { | |
myservo.attach(9); | |
pinMode(8,INPUT); |
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
import socket | |
if __name__ == "__main__": | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.connect(("localhost", 9000)) | |
data = "some data" | |
sock.sendall(data) | |
result = sock.recv(1024) | |
print result | |
sock.close() |
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
package com.example.nostalgia; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.OutputStreamWriter; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.util.Log; |
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
package com.example.nostalgia; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectOutputStream; | |
import java.io.OutputStreamWriter; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; |
##What is it
PRU Speak is an implementation of the BotSpeak language for the PRU. This project enables dynamic control of the Beaglebone black's PRU (Programmable Realtime Unit) from the Linux userspace on ARM.
BotSpeak is a robotics programming language designed to bridge the gap between small embedded systems such as the Raspberry Pi, BeagleBone, and Arduino. [See http://botspeak.org/ and https://sites.google.com/site/botspeak/ for more information]
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
root@beaglebone:~/pruspeak/src/dts# diff BB-PRUSPEAK-00A0.dts BB-BONE-PRU-07-00A0.dts | |
15c15 | |
< part-number = "BB-PRUSPEAK"; | |
--- | |
> part-number = "BB-BONE-PRU-04"; |
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
A. For Beta release : | |
1. dist package | |
2. tcp test | |
3. examples | |
4. make files | |
5. upstream kernel code | |
6. re-vamp docs | |
7. error warnings and exception handling | |
B. Further work : |
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
3554.801664] pru-rproc2 4a300000.prurproc: #8 PRU interrupts registered | |
[ 3554.801865] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [17] <- 1 | |
[ 3554.801906] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [18] <- 0 | |
[ 3554.801944] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [19] <- 2 | |
[ 3554.801981] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [20] <- 3 | |
[ 3554.802018] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [21] <- 0 | |
[ 3554.802054] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [22] <- 1 | |
[ 3554.802090] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [24] <- 4 | |
[ 3554.802127] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [25] <- 5 | |
[ 3554.802162] pru-rproc2 4a300000.prurproc: sysevent-to-channel-map [26] <- 6 |
NewerOlder