Line # Mem usage Increment Line Contents
================================================
6 30.2 MiB 0.0 MiB @profile
7 def mem_test():
8 30.5 MiB 0.3 MiB _syms = [Symbol('x_' + str(i), real=True, positive=True) for i in range(1, 101)]
9 34.7 MiB 4.2 MiB for i in _syms:
This file contains hidden or 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
package helpers | |
import ( | |
"math" | |
"math/rand" | |
) | |
type Point struct { | |
Lat, Lng float64 | |
} |
This file contains hidden or 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
func startRedisListener() { | |
ctx, cancelFn = context.WithCancel(context.Background()) | |
defer cancelFn() | |
onUserChannelMessage(ctx, r, w) | |
for { | |
// ...do usual stuff | |
} | |
} | |
func onUserChannelMessage(ctx context.Context, r <-chan *redis.Message, w chan string) { |
This file contains hidden or 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
func onUserChannelMessage(r <-chan *redis.Message, w chan string) { | |
go func() { | |
for m := range r { | |
w <- m.Payload | |
} | |
}() | |
} |
This file contains hidden or 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
from .models import Post, Category | |
from .decorators import action_form | |
class PostCategoryForm(forms.Form): | |
title = 'Update category for the selected posts' | |
category = forms.ModelChoiceField(queryset=Category.objects.all()) | |
@admin.register(Post) |
This file contains hidden or 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
<html> | |
<head> | |
<style>.frame { | |
margin-left: 0; | |
font-size: 10pt; | |
border-left: 1px solid #eee; | |
padding-left: 15px; | |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAALCAMAAAB8rpxtAAAARVBMVEUAAAD9/f5xe4R1fYZ1fIf////O0NWzs7OysrJ2fYh2fYh2fIf///+FjJaxtbv////n6Or///+VmqP///92fYh5gYyCiJLu0pBqAAAAFHRSTlMAghs7SSu2CgTirXMj/M9EnhHqZ/jLwbwAAABGSURBVAjXY0ABHOxQwAHkMIqJQAAnkMPKBuWwgNQJC4HZXGBNggKiIA4TxAh+PiCbG2YeI68IJwfMdB42EWaEXawsDJgAACnNA3xj5yn5AAAAAElFTkSuQmCC); | |
background-repeat: no-repeat; |
This file contains hidden or 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
<html> | |
<head> | |
<style>.frame { | |
margin-left: 0; | |
font-size: 10pt; | |
border-left: 1px solid #eee; | |
padding-left: 15px; | |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAALCAMAAAB8rpxtAAAARVBMVEUAAAD9/f5xe4R1fYZ1fIf////O0NWzs7OysrJ2fYh2fYh2fIf///+FjJaxtbv////n6Or///+VmqP///92fYh5gYyCiJLu0pBqAAAAFHRSTlMAghs7SSu2CgTirXMj/M9EnhHqZ/jLwbwAAABGSURBVAjXY0ABHOxQwAHkMIqJQAAnkMPKBuWwgNQJC4HZXGBNggKiIA4TxAh+PiCbG2YeI68IJwfMdB42EWaEXawsDJgAACnNA3xj5yn5AAAAAElFTkSuQmCC); | |
background-repeat: no-repeat; |
This file contains hidden or 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
<html> | |
<head> | |
<style>.frame { | |
margin-left: 0; | |
font-size: 10pt; | |
border-left: 1px solid #eee; | |
padding-left: 15px; | |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAALCAMAAAB8rpxtAAAARVBMVEUAAAD9/f5xe4R1fYZ1fIf////O0NWzs7OysrJ2fYh2fYh2fIf///+FjJaxtbv////n6Or///+VmqP///92fYh5gYyCiJLu0pBqAAAAFHRSTlMAghs7SSu2CgTirXMj/M9EnhHqZ/jLwbwAAABGSURBVAjXY0ABHOxQwAHkMIqJQAAnkMPKBuWwgNQJC4HZXGBNggKiIA4TxAh+PiCbG2YeI68IJwfMdB42EWaEXawsDJgAACnNA3xj5yn5AAAAAElFTkSuQmCC); | |
background-repeat: no-repeat; |
This file contains hidden or 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
commit de49998cc22c1873799539237d6202134a463956 | |
Author: Sudhanshu Mishra <[email protected]> | |
Date: Tue Jun 23 16:35:13 2015 +0530 | |
Symbol creation adds provided assumptions to global assumptions | |
diff --git a/sympy/core/symbol.py b/sympy/core/symbol.py | |
index 3945fa1..45be26d 100644 | |
--- a/sympy/core/symbol.py | |
+++ b/sympy/core/symbol.py |
This file contains hidden or 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
<li class="icon icon-arrow-left"> | |
<a href="#">Services</a> | |
<div class="mp-level"> | |
<h2 class="icon icon-display">Services</h2> | |
<a class="mp-back" href="#">Back</a> | |
<ul> | |
<li> | |
<a target="_blank" href="http://10.1.1.222/cms/">Complaint Portal</a> | |
</li> | |
<li> |
NewerOlder