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
1: /usr/share/vim/vimrc | |
2: /usr/share/vim/vim72/debian.vim | |
3: /home/jerojasro/.vimrc | |
4: /home/jerojasro/.vim/autoload/pathogen.vim | |
5: /usr/share/vim/vim72/syntax/syntax.vim | |
6: /usr/share/vim/vim72/syntax/synload.vim | |
7: /usr/share/vim/vim72/syntax/syncolor.vim | |
8: /home/jerojasro/vim-jerojasro/local-settings/filetype.vim | |
9: /home/jerojasro/.vim/bundle/ikiwiki/ftdetect/ikiwiki.vim | |
10: /home/jerojasro/.vim/bundle/outliner/ftdetect/vo_base.vim |
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
def fact(n): | |
if n == 0 or n == 1: | |
return 1 | |
return reduce(lambda x, y: x* y, range(1,n+1)) | |
def prob(n, x, p): | |
return fact(n)/(fact(x)* fact(n-x)) * p**(x) * (1.0-p)**(n-x) |
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
<?php | |
if(isset($r_pedidos[$nid_articulo])) | |
{ | |
$r_pedidos[$nid_articulo]['nid_itempedido'] = $nid_itempedido; | |
$r_pedidos[$nid_articulo]['cant_pedida'] = $cantidad_pedida; | |
$r_pedidos[$nid_articulo]['cant_recibida']= $cantidad_recibida; | |
$r_pedidos[$nid_articulo]['costo']= $costo; | |
} | |
else | |
{ |
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
[Tue Sep 13 16:46:28 2011] [error] [client 127.0.0.1] Error - <type 'exceptions.IOError'>: [Errno 13] Permission denied: 'task_ef5c59983abb0771259cf969a8b6c5ba' | |
[Tue Sep 13 16:46:28 2011] [error] [client 127.0.0.1] URL: http://hg.home.org/modulo_iglesia/summary | |
[Tue Sep 13 16:46:28 2011] [error] [client 127.0.0.1] File '/srv/python-virtualenvs/rhodecode/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/errormiddleware.py', line 162 in __call__ | |
[Tue Sep 13 16:46:28 2011] [error] [client 127.0.0.1] app_iter = self.application(environ, sr_checker) | |
[Tue Sep 13 16:46:28 2011] [error] [client 127.0.0.1] File '/srv/python-virtualenvs/rhodecode/lib/python2.6/site-packages/RhodeCode-1.1.8-py2.6.egg/rhodecode/lib/middleware/simplegit.py', line 99 in __call__ | |
[Tue Sep 13 16:46:28 2011] [error] [client 127.0.0.1] return self.application(environ, start_response) | |
[Tue Sep 13 16:46:28 2011] [error] [client 127.0.0.1] File '/srv/python-virtualenvs/rhodecode/lib/python2.6/site-packages/RhodeCode-1.1.8-py2.6.e |
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
cosa = x + z | |
where x = y | |
z = a | |
where y = 2 | |
a = 3 |
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
cosa = let y = 2 | |
a = 3 | |
in let x = y | |
z = a | |
in x + z |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
var Payments = function() { | |
var endpoint = 'https://sandbox.tpaga.co/api/tokenize/credit_card'; | |
var createToken = function(options, handler) { | |
if (!handler) throw new Error("Callback required"); | |
if (!options['primaryAccountNumber']) throw new Error("No ha especificado un número de tarjeta"); | |
if (!options['expirationMonth']) throw new Error("No se especificó un mes de vencimiento"); | |
if (!options['expirationYear']) throw new Error("No se especificó un año de caducidad"); | |
if (!options['cvc']) throw new Error("No se especificó una CVC"); | |
if (!options['cardHolderName']) throw new Error("No se especificó un nombre de titular de la tarjeta"); | |
if (!this.publicKey) throw new Error("No publicKey specified. Please call Payments.setPublicKey(...) first"); |
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
# DOES NOT WORK | |
def sub_word(<< w :: size(32) >>) do | |
for <<b <- w>>, into: <<>> do | |
<< :binary.at(@s_box, b) >> | |
end | |
end | |
# ** (ArgumentError) argument error | |
# :erlang.bit_size(1) | |
# lib/symmetric/aes.ex:27: Symmetric.AES.sub_word/1 |
OlderNewer