Skip to content

Instantly share code, notes, and snippets.

View KokaKiwi's full-sized avatar
🥝
rolling

KokaKiwi KokaKiwi

🥝
rolling
View GitHub Profile
macro_rules! llvm_int_type(
($size:ident) => (
pub fn concat_idents!(LLVM, $size, TypeInContext)(C: LLVMContextRef) -> LLVMTypeRef;
)
)
extern "C" {
llvm_int_type!(Int1)
}
#![feature(phase)]
#[phase(syntax)]
extern crate regex_macros;
extern crate regex;
#[cfg(use_macro)]
fn is_match(s: &str) -> bool {
let re = regex!(r"hell[ao]?");
re.is_match(s)

Keybase proof

I hereby claim:

  • I am kokakiwi on github.
  • I am kokakiwi (https://keybase.io/kokakiwi) on keybase.
  • I have a public key whose fingerprint is 9B75 CDF2 0FC5 FDFF 600C 3000 68F1 12F2 F5FE 5014

To claim this, I am signing this object:

int binand(int a, int b)
{
return a & b;
}
int logand(int a, int b)
{
return a && b;
}
#include <string>
#include <iostream>
#include "ex00.hh"
const Cluedo::Weapon::Name Cluedo::Weapon::PartOfTheCrime = Corde;
const Cluedo::Suspect::Name Cluedo::Suspect::PartOfTheCrime = Pr_Violet;
const Cluedo::Room::Name Cluedo::Room::PartOfTheCrime = Veranda;
int main()
{
use super::Hasher;
pub struct Dummy;
impl<T: IterBytes> Hasher<T, u64> for Dummy
{
fn hash(&self, _e: &T) -> u64
{
0
use super::Hasher;
pub struct Dummy;
impl<T: IterBytes> Hasher<T, u64> for Dummy
{
fn hash(_e: &T) -> u64
{
0
#[link(
name = "fcreator",
vers = "0.1.0",
uuid = "a43118ca-2032-4b11-844d-ad9c4d14c35e"
)];
#[license = "MIT"];
#[crate_type = "bin"];
# Find Rust compiler and define some variables:
# - RUST_FOUND If Rust has been found.
# - RUST_VERSION Installed rust version.
# - RUST_EXECUTABLE 'rust' executable path
# - RUSTC_EXECUTABLE 'rustc' executable path
find_program(RUST_EXECUTABLE
NAMES
rust
PATHS
#!/bin/bash
ARCH_MINI="$HOME/tmp_arch"
ARCH_SYS="$ARCH_MINI/mnt"
ARCHI=$(uname -m)
sudo mount /dev/sda10 "$ARCH_SYS"
cat | sudo tee "$ARCH_SYS/etc/fstab" <<EOF
tmpfs /tmp tmpfs nodev,nosuid 0 0