Skip to content

Instantly share code, notes, and snippets.

View howarth's full-sized avatar

howarth

View GitHub Profile
Traceback (most recent call last):
File "/home/dhowarth/distai/dai_testbed/risk_demo_1/RoutingCode/mcp_fair.py", line 116, in <module>
visualize(F, pathlist, bwdict)
File "/home/dhowarth/distai/dai_testbed/risk_demo_1/RoutingCode/visualization.py", line 70, in visualize
draw(G, sorted_paths, bwdict)
File "/home/dhowarth/distai/dai_testbed/risk_demo_1/RoutingCode/visualization.py", line 54, in draw
nx.draw_networkx_edges(G, pos, edgelist=path, edge_color=[color], width=2, connectionstyle=[f'arc3,rad={offset}'])
File "/home/dhowarth/apps/anaconda3/envs/distai/lib/python3.9/site-packages/networkx/drawing/nx_pylab.py", line 913, in draw_networkx_edges
edge_viz_obj = _draw_networkx_edges_fancy_arrow_patch()
File "/home/dhowarth/apps/anaconda3/envs/distai/lib/python3.9/site-packages/networkx/drawing/nx_pylab.py", line 779, in _draw_networkx_edges_fancy_arrow_patch
a = rand(10,2);
c = a(:);
b = reshape(c',10,2);
b == a ; % should return true
1 ##
2 # Host Database
3 #
4 # localhost is used to configure the loopback interface
5 # when the system is booting. Do not change this entry.
6 ##
7 127.0.0.1 localhost
8 255.255.255.255 broadcasthost
9 ::1 localhost
10 0.0.0.0 reddit.com
{ "krns4:sentence-18": "krns2-active-15",
"krns2:sentence-19": "krns2-active-16",
"krns2:sentence-30": "krns2-passive-11",
"krns2:sentence-31": "krns2-passive-12",
"krns2:sentence-34": "krns2-passive-15",
"krns2:sentence-35": "krns2-passive-16",
"krns2:sentence-10": "krns2-active-7",
"krns2:sentence-11": "krns2-active-8",
"krns2:sentence-12": "krns2-active-9",
"krns2:sentence-13": "krns2-active-10",
Applying baseline correction ... (mode: mean)
Applying baseline correction ... (mode: mean)
Applying baseline correction ... (mode: mean)
Applying baseline correction ... (mode: mean)
Applying baseline correction ... (mode: mean)
Applying baseline correction ... (mode: mean)
Applying baseline correction ... (mode: mean)
Applying baseline correction ... (mode: mean)
Applying baseline correction ... (mode: mean)
Traceback (most recent call last):
>>> a = 5 *[[-1,1]]
>>> a
[[-1, 1], [-1, 1], [-1, 1], [-1, 1], [-1, 1]]
>>> a[1][0] = 2
>>> a
[[2, 1], [2, 1], [2, 1], [2, 1], [2, 1]]
Information on complex Morlet wavelet.
Complex Morlet Wavelet
Definition: a complex Morlet wavelet is
cmor(x) = (pi*Fb)^{-0.5}*exp(2*i*pi*Fc*x)*exp(-(x^2)/Fb)
depending on two parameters:
Fb is a bandwidth parameter
Fc is a wavelet center frequency
class BlogsController < ApplicationController
...
def show
@blog = @blog.find(params[:id])
@blog = @blog.blog_clone if params[:preview]
end
end
class BlogController < ApplicationController
...
def show
@blog = @blog.find(params[:id])
@blog = @blog.blog_clone if params[:preview]
end
end
class Blog < ActiveRecord::Base
has_one :blog_clone
...
def clone
self.blog_clone = BlogClone.new if not self.blog_clone
self.blog_clone.header = self.header
self.blog_clone.footer = self.footer
self.blog_clone.save