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
Compiling rustcallc v0.1.0 (file:///Users/kaiyin/Documents/workspace-eclipse-neon/rustcallc) | |
error[E0369]: binary operation `+` cannot be applied to type `<T as std::ops::Rem>::Output` | |
--> src/main.rs:24:9 | |
| | |
24 | (*self % n) + n | |
| ^^^^^^^^^^^ | |
| | |
note: an implementation of `std::ops::Add` might be missing for `<T as std::ops::Rem>::Output` | |
--> src/main.rs:24:9 | |
| |
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 std::ops::Add; | |
/// Z^m number system | |
/// # Examples | |
/// ``` | |
struct Mod<T: Modulo<T>> { | |
modulo: T, | |
i: T, | |
} |
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
#[derive(Debug)] | |
struct Foo { | |
f : i32 | |
} | |
#[derive(Debug)] | |
struct Bar<'b> { | |
bar1 : &'b Foo, | |
bar2 : &'b Foo | |
} |
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
struct Bar<'b> { | |
r4 : &'b Foo, | |
r5 : &'b Foo | |
} | |
struct Bar<'b, 'c> { | |
r4 : &'b Foo, | |
r5 : &'c Foo | |
} |
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
#[derive(Debug)] | |
struct Foo<'a> { | |
x: &'a i32, | |
} | |
fn main() { | |
let y = &5; | |
{ | |
let foo; | |
foo = Foo { x: y }; |
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 java.io.FileWriter | |
object AppendClipboard extends App { | |
import sys.process._ | |
val fw = new FileWriter("/tmp/clipboard.log") | |
def getClipContent(): String = { | |
val res = Process("pbpaste").lineStream.toList.mkString("\n") | |
res |
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
Process: 4kvideodownloader [99624] | |
Path: /Applications/4K Video Downloader.app/Contents/MacOS/4kvideodownloader | |
Identifier: com.openmedia.4kvideodownloader | |
Version: 4.1 (4.1.2) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: 4kvideodownloader [99624] | |
User ID: 501 | |
Date/Time: 2016-08-12 21:39:39.226 +0200 |
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
Process: 4kvideodownloader [15603] | |
Path: /Applications/4K Video Downloader.app/Contents/MacOS/4kvideodownloader | |
Identifier: com.openmedia.4kvideodownloader | |
Version: 4.1 (4.1.2) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: 4kvideodownloader [15603] | |
User ID: 501 | |
Date/Time: 2016-08-11 11:22:06.486 +0200 |
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
/*! jQuery v3.0.0 | (c) jQuery Foundation | jquery.org/license */ | |
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.0.0",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:f.call(this)},pushStack:function(a){var b=r.merge(this.constructor(),a);return b. |
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
filter_by_corr = function(correlation_thresh, geno_cor) { | |
geno_cor_filter = abs(geno_cor) < correlation_thresh | |
diag(geno_cor_filter) = TRUE | |
i = 0 | |
while(TRUE) { | |
i = i + 1 | |
if(i > length(ordered_pairs)) break | |
pair = ordered_pairs[i] | |
if(! (pair %in% colnames(geno_cor_filter))) { | |
next |