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
// Trivial program that sends the single byte to tickle a NABU Internet Adapter awake | |
// and then dumps out any response. | |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(10, 11); // RX, TX | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Started"); |
This file has been truncated, but you can view the full file.
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
{ | |
"GeneralInfo": { | |
"Target Model": "NX4832F035_011", | |
"Header 2 XOR Key": "0x9db6482e" # not correct | |
}, | |
"Header1": { | |
"unknown0": 0, | |
"editorVersionMain": 1, | |
"editorVersionSub": 63, | |
"editorVendor": 78, |
This file has been truncated, but you can view the full file.
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
{ | |
"GeneralInfo": { | |
"Target Model": "NX4832F035_011", | |
"Header 2 XOR Key": "0x9db6482e" # not correct | |
}, | |
"Header1": { | |
"unknown0": 0, | |
"editorVersionMain": 1, | |
"editorVersionSub": 63, | |
"editorVendor": 78, |
This file has been truncated, but you can view the full file.
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
/tmp/test ❯ cat test.zsh | |
#!/bin/zsh | |
set -x | |
W='-iname *.txt' | |
find . ${=W} | |
set +x | |
/tmp/test ❯ zsh test.zsh |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $count = shift | |
or die "Usage: $0 <file count>\n"; | |
my @files = map { open my $file, ">", "part$_.out" or die "open: $!"; $file; } 1..$count; |
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
-- Assumption: we want every unique constraint in the public schema to be deferrable | |
-- 1. Non-table-constraint unique indexes are made into deferrable constraints | |
-- 2. Non-deferrable table constraints are dropped and re-created deferrable | |
CREATE OR REPLACE FUNCTION | |
fixup_unique_constraints() | |
RETURNS void | |
AS $$ | |
DECLARE | |
idx RECORD; |
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 warnings; | |
use strict; | |
package Catalyst::Plugin::ConfigLoaderLocalHack; | |
our $VERSION = '1.00'; | |
use Moose::Role; | |
use namespace::autoclean; | |
around 'find_files' => sub { |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
package Foo; | |
use parent 'Rose::Object'; | |
use Rose::Object::MakeMethods::Generic ( |