To use the profiler, just use import pyprofile and if the function to be profiled is named stupid_code use the profiler as follows
@pyprofile
def stupid_code():
# do something stupid here
To use the profiler, just use import pyprofile and if the function to be profiled is named stupid_code use the profiler as follows
@pyprofile
def stupid_code():
# do something stupid here
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2016 Sayan Goswami <goswami.sayan47@gmail.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| <?php | |
| $topUp = 100; | |
| list($integerPart1, $integerPart2) = convertTo48bit($topUp); | |
| $packedInteger = pack("vV", $integerPart1, $integerPart2); | |
| echo json_encode($packedInteger) . "\n"; |
| function upload(file) { | |
| var imageLink =""; | |
| /* Is the file an image? */ | |
| if (!file || !file.type.match(/image.*/)) return; | |
| var fd = new FormData(); | |
| fd.append("image", file); // Append the file | |
| fd.append("key", "<Imgur API key>"); |
| #!/bin/bash | |
| pushd . | |
| dir=$(pwd) | |
| cd $2 | |
| $1 --preserve-paths --relative-only $(find $dir/$3 -iname "*.gcda") >/dev/null | |
| echo "#!/usr/bin/python | |
| import json,sys,codecs |
| javascript:{window.location='https://ohdear.app/tools/reachable?prefill='+encodeURIComponent(window.location.href)} |
| #!/bin/sh | |
| #setup dependencies | |
| sudo apt-get install --reinstall linux-headers-generic build-essential | |
| #get patched drivers | |
| wget http://www.lewiscowles.co.uk/dls/MT7601U-14.04-patched.tar -O - | tar -x | |
| cd MT7601U-14.04-patched | |
| # build and install |
| node { | |
| try{ | |
| notifyBuild('STARTED') | |
| bitbucketStatusNotify(buildState: 'INPROGRESS') | |
| ws("${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}/") { | |
| withEnv(["GOPATH=${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"]) { | |
| env.PATH="${GOPATH}/bin:$PATH" | |
| stage('Checkout'){ |
| // functor.c : Illustrates run-time polymorphism in C. | |
| // | |
| #include <memory.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| //////////////////////////////////////////////////////////////////////////////// | |
| // APIs |
| #!/bin/sh -e | |
| # | |
| # This file belongs in /usr/lib/dhcpcd5/dhcpcd how you get it there is up to you | |
| # | |
| DHCPCD=/sbin/dhcpcd | |
| INTERFACES=/etc/network/interfaces | |
| REGEX="^[[:space:]]*iface[[:space:]](*.*)[[:space:]]*inet[[:space:]]*(dhcp|static)" | |
| EXCLUDES="" |