Skip to content

Instantly share code, notes, and snippets.

Ernesto Menéndez nettok

Block or report user

Report or block nettok

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:56cd90248943b891c43eb9d1d3f3287e
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
CPU Family: 0x6
View pow_mod.rs
/// Exponenciación modular ((b^e) % m)
fn pow_mod(b: usize, mut e: usize, m: usize) -> usize {
// if e == 0 { return 1; }
// if e % 2 == 0 {
// pow_mod(b, e / 2, m).pow(2) % m
// } else {
// (b * pow_mod(b, e - 1, m)) % m
// }
@nettok
nettok / ws.py
Created May 15, 2012
WebServices module
View ws.py
import json
from functools import wraps
from collections import namedtuple
from pyramid.request import Request
from pyramid.httpexceptions import (
HTTPException,
HTTPNotFound,
View gist:2199503
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc.so
../src/rustc/middle/infer.rs:297:21: 297:39 error: attempted access of field bounds_to_str on type middle::infer::infer_ctxt, but no field or method with that name was found
../src/rustc/middle/infer.rs:297 a_id, self.bounds_to_str(a_bounds),
^~~~~~~~~~~~~~~~~~
note: in expansion of #fmt
<core-macros>:5:45: 5:58 note: expansion site
<core-macros>:5:10: 5:60 note: in expansion of #debug
../src/rustc/middle/infer.rs:296:8: 298:51 note: expansion site
../src/rustc/middle/infer.rs:297:21: 297:49 error: the type of this value must be known in this context
../src/rustc/middle/infer.rs:297 a_id, self.bounds_to_str(a_bounds),
@nettok
nettok / expr.erl
Created Dec 13, 2011
Recursive descent parser for mathematic expressions with AST generation by shunting-yard algorithm
View expr.erl
-module(expr).
-export([parse/1, eval/1]).
% Recursive descent parser for mathematic expressions with AST generation by shunting-yard algorithm ----------------
% TODO: more error checking
% grammar
% ~~~~~~~
%
You can’t perform that action at this time.