/etc/dogtag: BeagleBoard.org Debian Image 2017-08-31
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
| #!/bin/bash | |
| # +o histexpand is to avoid issues with ! showing up in ticket descriptions. | |
| # The rest are just good Bash script practice. | |
| set -eu -o pipefail +o histexpand | |
| if [[ $# -lt 2 ]]; then | |
| echo "usage: $0 <user> <repo>" | |
| exit 1 | |
| fi |
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
| ---------------------------------------------------------------------------------------------------- | |
| --- Making Lua look like Prolog: | |
| --- | |
| --- Let's use metatables for something other than emulating prototype-based OO. By making the | |
| --- __index metamethod create values for undefined things, we can make Lua look like Prolog! | |
| --- We create empty tables for anything starting with a capital letter, functions that populate | |
| --- those tables for lowercase things (to assign relationships) and if a name begins with "is_" | |
| --- then it becomes a function that queries those tables. | |
| ---------------------------------------------------------------------------------------------------- |
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
| import | |
| intsets, | |
| tables | |
| type | |
| GraphNode*[T] = ref GraphNodeObj[T] | |
| GraphNodeObj[T] = object | |
| val: T | |
| adj: IntSet | |
| nodesIn: int |
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
| // SIMPL Interpreter for MSP430 Launchpad - inspired by an original idea by Ward Cunningham | |
| // A minimal 868 byte Txtzyme for MSP430 Launchpad with MSP430G2533 | |
| // Add in SIMPL framework - to allow construction and use of user defined words - increases to 1084 bytes | |
| #define RXD BIT1 // Receive Data (RXD) at P1.1 | |
| #define TXD BIT2 // Transmit Data (TXD) at P1.2 | |
| #define RED 0x20 // Red LED is on Bit 6 | |
| #define GREEN 0x01 // Green LED is on Bit 0 |
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
| #!/bin/sh | |
| #set -vx | |
| ## 2016 / dewey hylton | |
| ## wrapper to create/modify fossil repositories | |
| ## handles with default documentation, users, etc. | |
| DATADIR="./fossils" | |
| DATADIR="./fossil" | |
| READMEDIR="docs" | |
| READMEMD="${READMEDIR}/README.md" |
#Comprehensive Introduction to @ngrx/store By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
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
| /* | |
| * V4L2 video capture example | |
| * | |
| * This program can be used and distributed without restrictions. | |
| * | |
| * This program is provided with the V4L2 API | |
| * see http://linuxtv.org/docs.php for more information | |
| */ | |
| #include <stdio.h> |
NewerOlder