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
add_action('print_media_templates', function() { | |
?> | |
<script> | |
var el = document.getElementById('tmpl-attachment'); | |
var pos = el.outerHTML.indexOf('<# } else if ( \'image\' === data.type && data.sizes ) { #>'); | |
var text = '<# } else if ( \'svg+xml\' === data.subtype ) { #>\n' + | |
'<div class="centered">\n' + | |
'<img src="{{ data.url }}" class="thumbnail" draggable="false" />\n' + | |
'</div>\n' + |
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"; |
Where are you based in the UK? | How would you describe what you do? | Is your primary skill set(s) | How old are you? | How many years have you been a web professional? | How many years have you been freelance? | What is your DAY (not hourly) rate? | DAY RATE (clean) | What is your HOUR (not daily) rate? | HOUR RATE (clean) | How do you primarily charge clients? | Do you normally request a deposit before starting work on a project? | Do you normally use a contract? | Do you mostly work … | What is the average value of projects you work on? | What is your gender? | Do you primarily charge a fixed rate or does your rate vary between clients? | What is the average amount of time spent working on a project? | How many projects do you tend to work on at any on time? | What is your normal invoicing terms? | Where do you primarily work? | On average, how many hours a day do you normally work? | On average, how many days a week do you normally work? | Do you have an accountant? | What accounting software do you use, if any? | Accounting software (clean) | Is fr |
---|
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 |
[SECTION .text] | |
global _start | |
_start: | |
jmp short getData | |
execIt: | |
pop ebx ;Get the string off stack | |
xor eax,eax ;Clear eax | |
mov [ebx+8],al ;This helps us to avoid having a zero byte in our code. | |
;It sets the terminator to the string. | |
push eax ;Second argument for WinExec |
javascript:{window.location='https://ohdear.app/tools/reachable?prefill='+encodeURIComponent(window.location.href)} |
In a terminal start a server.
$ python -m SimpleHTTPServer 8000
In another terminal set up the cgroups freezer.