Skip to content

Instantly share code, notes, and snippets.

First I did this and got
(indico)amit@esornep:~/Documents/indico/src$ indico_shell
+ 'MaKaC' : MaKaC base package
+ 'Conference'
+ 'Category'
+ 'ConferenceHolder'
+ 'CategoryManager'
+ 'AvatarHolder'
+ 'GroupHolder'
2013-05-08 15:17:20,943 indico.indexes.text: ERROR - No such entry ''
2013-05-08 22:41:11,857 indico.requestHandler: ERROR - Request 3026624300 failed: "[Errno 13] Permission denied: '/home/amit/Documents/Indifiles/tmp/mako_modules/DayOverview.tpl.py'"
Traceback (most recent call last):
File "/home/amit/Documents/GSOC/indico/src/MaKaC/webinterface/rh/base.py", line 586, in process
res = self._process()
File "/home/amit/Documents/GSOC/indico/src/MaKaC/webinterface/rh/categoryDisplay.py", line 128, in _process
return p.display()
File "/home/amit/Documents/GSOC/indico/src/MaKaC/webinterface/pages/base.py", line 190, in display
self._display( params ), \
File "/home/amit/Documents/GSOC/indico/src/MaKaC/webinterface/pages/main.py", line 155, in _display
@amitjamadagni
amitjamadagni / gist:5582954
Created May 15, 2013 10:12
Eclipse error.
Finding files... done.
Importing test modules ... Traceback (most recent call last):
File "/home/amit/Downloads/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydev_runfiles.py", line 432, in __get_module_from_str
mod = __import__(modname)
File "/home/amit/Documents/main/indico/indico/util/redis/__init__.py", line 22, in <module>
from indico.util.redis.scripts import LazyScriptLoader
ImportError: No module named redis.scripts
ERROR: Module: util.redis.avatar_links could not be imported (file: /home/amit/Documents/main/indico/indico/util/redis/avatar_links.py).
Traceback (most recent call last):
File "/home/amit/Downloads/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydev_runfiles.py", line 432, in __get_module_from_str
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Information Form</title>
<link rel="stylesheet" media="screen" href="/home/amit/Documents/rtc/s.css" >
</head>
<img src="/home/amit/Pictures/apsrtc_logo.gif">
<body>
<form class="contact_form" action="/var/www/field1.php" method="post" name="contact_form">
@amitjamadagni
amitjamadagni / gist:6731005
Created September 27, 2013 16:11
lol simple and
module AND(c, a, b);
input a,b;
output c;
and (c, a, b);
endmodule
module TEST;
reg a, b;
wire c;
AND A1(c, a, b);
@amitjamadagni
amitjamadagni / gist:6732416
Last active December 24, 2015 02:39
plot
function i = diodeequation(Dn,Ln,Na,Dp,Lp,Nd,ni,A)
io = q*A*((Dn/Ln)*(ni^2/Na) + (Dp/Lp)*(ni^2/Nd));
V = (K*T/q)*ln(i/io + 1);
i = 0: 0.01: inf;
plot(i,V);
// Calling the function as follows
x = i(with all the inputs)
@amitjamadagni
amitjamadagni / gist:7359224
Created November 7, 2013 18:10
verilog tp
module carry_over_adder(a0, a1, a2, a3, a4, a5, b0, b1, b2, b3, b4, b5, s0, s1, s2, s3, s4 ,s5, c0);
input a0, a1, a2, a3, a4, a5, b0, b1, b2, b3, b4, b5, c0;
output s0, s1, s2, s3, s4, s5;
wire c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20;
wire c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40;
wire c41, c42, c43, c44;
not (ci, c0); //notting c0 gate)
//START OF FIRST SEQUENCE
nand (c1, a0, b0);
nor (c2, a0, b0);
@amitjamadagni
amitjamadagni / seifert matrix
Created March 7, 2014 21:33
A very initial implementation of Seifert Matrix.
from sage.matrix.constructor import identity_matrix, matrix
def components(x):
new = []
for i in range(len(x)):
a = abs(x[i])
new.append(a)
print new
sorted = list(set(new))
print sorted
'''sorting the absolute values of the braid word'''
from sage.groups.free_group import FreeGroupElement
from sage.groups.braid import Braid
#from sage.matrix.matrix_integer_dense import Matrix_integer_dense, delete_rows
class Link:
def __init__(self, input = None, gauss_code = None, dt_code = None):
if type(input) == sage.groups.braid.Braid:
self._braid = input
self._gauss_code = None
self._dt_code = None
from sage.groups.free_group import FreeGroupElement
from sage.groups.braid import Braid
class Link:
def __init__(self, input = None, gauss_code = None, dt_code = None):
if type(input) == sage.groups.braid.Braid:
self._braid = input
self._gauss_code = None
self._dt_code = None