-
Postgres Performance for Humans - http://pyvideo.org/video/2641/postgres-performance-for-humans
-
PostgreSQL is Web Scale - http://pyvideo.org/video/2650/postgresql-is-web-scale-really
-
Set your code free: releasing and maintaining an open-source Python project - http://pyvideo.org/video/2637/set-your-code-free-releasing-and-maintaining-an
-
Track memory leaks in Python - http://pyvideo.org/video/2698/track-memory-leaks-in-python
-
Unit Testing Makes Your Code Better - http://pyvideo.org/video/2648/unit-testing-makes-your-code-better
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project DefaultTargets="PrepareStaticContent" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <!-- Passed in Parameters --> | |
| <configuration></configuration> | |
| <workingDir></workingDir> | |
| <buildNumber></buildNumber> | |
| <buildViews>false</buildViews> | |
| <minifyJs>true</minifyJs> | |
| <TargetsDirectory></TargetsDirectory> |
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
| # 3. wait few days (weeks) to gather data :) | |
| # 4. display results by this rake task sorted from most frequent action to least frequent action | |
| # rake action:show_frequency | |
| # 5. The rule 80/20 says - users are doing 20% of actions in 80% of time | |
| # -> increase performance, improve user experience, ... of these actions | |
| namespace :action do | |
| desc "This tasks shows freuquency of requests" | |
| task show_frequency: :environment do | |
| sum = Action.sum(:count) | |
| Action.all.order('count desc').each_with_index do |a, index| |
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 cProfile import Profile | |
| from django.core.management.base import BaseCommand | |
| class ProfileEnabledBaseCommand(BaseCommand): | |
| """Enable profiling a command with --profile. | |
| Requires child class to define _handle instead of handle. | |
| via https://gist.github.com/dfrankow | |
| """ |
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
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
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
| public class SomeClass { | |
| public void SomeMethod() { | |
| this.Log().Info(() => "Here is a log message with params which can be in Razor Views as well: '{0}'".FormatWith(typeof(SomeClass).Name)); | |
| } | |
| } |
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
| TODO | |
| Improved year labels (mouseover -> shows full name in tooltip) |
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
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
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
| <!DOCTYPE html> | |
| <head> | |
| <title>Snow</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> | |
| <script src="snow.js" type="text/javascript"/></script> | |
| </head> | |
| <body onload="init();"> | |
| <canvas id="bgcanvas" width="410" height="316" style="position:absolute;z-index:2"></canvas> | |
| <img src="globe_layers_2.png" style="position:absolute;z-index:3"> | |
| <canvas id="fgcanvas" width="410" height="316" style="position:absolute;z-index:4"></canvas> |
NewerOlder