First install the required gems:
gem install octokit awesomeprint rainbow
Then run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb
trait StateSet { | |
fn next(self) -> (u32, Self); | |
} | |
trait State { | |
type S: StateSet; | |
fn next(self) -> (u32, Self::S); | |
} | |
macro_rules! delegate { |
#![allow(unused)] | |
use std::collections::HashMap; | |
#[derive(Debug)] | |
enum Scalar { | |
String(String), | |
Unsigned(u32), | |
Bool(bool), | |
} |
use std::any::Any; | |
use std::any::TypeId; | |
#[derive(Debug)] | |
enum Scalar { | |
String(String), | |
Unsigned(u32), | |
Bool(bool), | |
} |
#![allow(unused)] | |
mod generic { | |
pub struct Scalar<T: Default> { | |
value: T, | |
} | |
impl<T: Default> Scalar<T> { | |
pub fn new() -> Self { | |
Scalar { |
use std::rc::Rc; | |
pub trait HKT<U> { | |
type C; // Current type | |
type T; // Type with C swapped with U | |
} | |
macro_rules! derive_hkt { | |
($t:ident) => { | |
impl<T, U> HKT<U> for $t<T> { |
// sweet.js arrow function macro | |
// https://github.com/mozilla/sweet.js/ | |
macro => { | |
rule infix { ( $arg:ident (,) ... ) | { $body ... $last:expr } } => { | |
(function ( $arg (,) ... ) { | |
$( $body) ... | |
return $last | |
}).bind(this) | |
} |
Need to open /usbkey/config and add | |
admin_v6_ip=xx:xx:xx/xx | |
admin_v6_gateway=yy:yy:yy | |
place ipv6 in /opt/custom/smf | |
place ipv6.xml in /opt/custom/scripts |
First install the required gems:
gem install octokit awesomeprint rainbow
Then run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb
First install the required gems:
gem install octokit awesomeprint rainbow
Then run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb
#!/usr/bin/tclsh | |
# | |
# Usage: git-unmerged branch1 branch2 | |
# | |
# Shows all the non-common commits in the two branches, where non-common | |
# commits means simply commits with a unique commit *message*. | |
proc getlog branch { | |
lrange [split [exec git log $branch --oneline] "\n"] 0 400 | |
} |