Quantcast
Channel: Recent Gists from luqmana
Browsing latest articles
Browse All 41 View Live

gist:6248800

gistfile1.txt ~"register_foreign_item_fn(abis=\"C\", path=[cmath, c_float_utils, ceil], foreign_item.id=153330)" ~"trans_native_call(callee_ty=extern \"C\" unsafe fn(f32) -> f32, llfn=*fn(Float)...

View Article



rj.rs

rj.rs extern mod sdl; use std::libc::{c_int, c_void}; use std::rt::comm; use std::rt::io::extensions::*; use std::rt::io::io_error; use std::rt::io::net::ip::{IpAddr, Ipv4Addr, Port, SocketAddr}; use...

View Article

simd.rs

simd.rs #[simd] struct F(f32, f32); static A: F = F(2.0, 3.5); fn main() { }

View Article

foo.c

foo.c extern int foobar __attribute__((weak)); int main(int argc, char *argv[]) { return foobar; }

View Article

build

build -> % rustc foo.rs --lib -Z extra-debug-info -> % ls foo.c foo.rs libfoo-102129e09d96658-0.0.so -> % gcc foo.c -g -L. -lfoo-102129e09d96658-0.0 -o foo -> % LD_LIBRARY_PATH=. ./foo [1]...

View Article


rotl.rs

rotl.rs #![feature(asm, macro_rules)] use std::mem; fn rotl(val: u64, shift: u8) -> u64 { let sz = mem::size_of_val(&val); (val << shift) | (val >> (sz * 8 - shift as uint)) }...

View Article

Steps.md

Steps.md Steps: Download http://luqman.ca/rust-builds/rust-0.9-pre-191cba6-i686-w64-mingw32.zip Extract to somewhere, say Desktop Download...

View Article

Ident Server in Rust

gistfile1.md Simple Ident Server in Rust This is a quick example of a simple TCP server written (mostly) in Rust which implements RFC 1413. It has a bit of networking, regex, and FFI. All code...

View Article


Entrypoints!.md

Entrypoints!.md Or what the hell do #![no_start], #![no_main], #[lang = "start"], #[start], and #[main] do? Crate Attributes: #![no_start] Disable automatically linking in the native crate and thus...

View Article


a-steps.md

a-steps.md > % rustc hello.rs --target=psp -lpspdebug -lpspdisplay -lpspge -lm -lc -lpspuser -lgcc > % psp-fixup-imports hello && psp-prxgen hello hello.prx hello.rs #![no_std]...

View Article

mir-intrinsics.diff

mir-intrinsics.diff diff --git a/src/librustc/mir/repr.rs b/src/librustc/mir/repr.rs index 049063f..38fb55f 100644 --- a/src/librustc/mir/repr.rs +++ b/src/librustc/mir/repr.rs @@ -294,7 +294,7 @@...

View Article

otp.rs

otp.rs // This code can be compiled in 3 modes: // rustc --cfg find // rustc --cfg interactive // rustc --cfg oracle // // The interactive mode is based on the // crib dragging technique described by...

View Article

vigenere.rs

vigenere.rs // Implemented based on the techniques described in // the notes by Shai Simonson: 'Public Key Crpytography' // http://web.stonehill.edu/compsci/Shai_papers/RSA.pdf // (Page 9-10) use...

View Article


ddns-start.sh

ddns-start.sh #!/bin/sh # Digital Ocean Dynamic DNS Script # # Updates an A record using Digital Oceans DNS Managment API # # Args: # $1 - WAN IP # Generate token at...

View Article

steamlink.eth.2.log

steamlink.eth.2.log tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes 20:19:09.290367 ARP,...

View Article


parker.rs

parker.rs 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...

View Article

create-pulse-sinksources

create-pulse-sinksources 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...

View Article


valo.sh

valo.sh 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...

View Article

qemu-bionic-on-focal-fixes.patch

qemu-bionic-on-focal-fixes.patch 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...

View Article

qemu-audio-fix.patch

qemu-audio-fix.patch 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...

View Article

win10.xml

win10.xml 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...

View Article


win10.xml

win10.xml 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...

View Article


blur-camera.sh

blur-camera.sh 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...

View Article

migration-protocol-flow.svg

migration-protocol-flow.svgSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed. Viewer requires iframe.

View Article

Cargo.toml

Cargo.toml 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...

View Article


floaty-zero-slices.py

floaty-zero-slices.py 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...

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

opte-util.sh

opte-util.sh 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...

View Article

main.rs

main.rs 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...

View Article



simnet-trace.d

simnet-trace.d 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...

View Article
Browsing latest articles
Browse All 41 View Live




Latest Images