Skip to content

Instantly share code, notes, and snippets.

View little-arhat's full-sized avatar
🕵️‍♂️
What I had was a coat, a hat and a gun...

Roma Sokolov little-arhat

🕵️‍♂️
What I had was a coat, a hat and a gun...
View GitHub Profile
wdwffd
wdwfd
This file has been truncated, but you can view the full file.
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/**
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license>
*/
var baseAssign = require('lodash._baseassign'),
This file has been truncated, but you can view the full file.
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/**
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license>
*/
var baseAssign = require('lodash._baseassign'),
==> Cloning https://github.com/rust-lang/rust.git
git --git-dir /Library/Caches/Homebrew/rust--git/.git status -s
Updating /Library/Caches/Homebrew/rust--git
git config remote.origin.url https://github.com/rust-lang/rust.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch original
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 10 (delta 7), reused 6 (delta 3), pack-reused 0
Unpacking objects: 100% (10/10), done.
@little-arhat
little-arhat / enum_of_traits.rs
Created October 19, 2014 19:38
enum of traits
#![feature(if_let)]
extern crate collections;
use collections::DList;
use collections::Deque;
trait Immut {
fn immut_meth(&self);
}
#![feature(macro_rules)]
macro_rules! iter_magic(
($inp:expr => $($func:ident ($args:expr))=>+) => (
$inp.iter()$(.$func($args))+
);
)
fn main() {
let b = "hello".as_bytes();
// find_str uses Searcher which uses &[u8] internally
fn find_bytes(haystack: &[u8], needle: &[u8]) -> Option<uint> {
unsafe {
let hs:&str = std::mem::transmute(haystack);
let ns:&str = std::mem::transmute(needle);
hs.find_str(ns)
}
}
bt: flip `email`password ! ("Ss"; "\t") 0: `:./Gmail.txt
dbt: distinct bt
cdbt: count dbt
select password,no:i+1,c,percent from `c xdesc select percent:(100 * (count i) % cdbt),c:count i by password from dbt where not (password like "")
extern crate collections;
extern crate core;
use std::vec::Vec;
use core::ptr;
use std::slice::MutableCloneableSlice;
@little-arhat
little-arhat / 01.configure
Last active August 29, 2015 14:06
Failed to install gcc on maverick
2014-09-13 19:42:33 +0400
../configure
--build=x86_64-apple-darwin13.3.0
--prefix=/Users/user/.brew/Cellar/gcc/4.9.1
--enable-languages=c,c++,objc,obj-c++,fortran
--program-suffix=-4.9
--with-gmp=/Users/user/.brew/opt/gmp
--with-mpfr=/Users/user/.brew/opt/mpfr
--with-mpc=/Users/user/.brew/opt/libmpc