This file contains 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
/* | |
Zooming and rotating HTML5 video player | |
Homepage: http://github.com/codepo8/rotatezoomHTML5video | |
Copyright (c) 2011 Christian Heilmann | |
Code licensed under the BSD License: | |
http://wait-till-i.com/license.txt | |
*/ | |
(function(){ | |
/* predefine zoom and rotate */ |
This file contains 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
<?php | |
function convertfilename($filename) { | |
$filename = str_replace([ "?", "[", "]", "/", "\\", "=", "<", ">", | |
":", ";", ",", "'", '"', "&", "$", "#", | |
"*", "(", ")", "|", "~" ], "", $filename); | |
$filename = preg_replace("/[\s-]+/", "-", $filename); | |
$filename = trim($filename, ".-_"); | |
return ucwords($filename); | |
} |
How do you sort a list of words on the 4th character of the word? What"s the shortest solution?
[ "strawberry", "helicopter", "wales", "acorn" ]
should be:
- Bullying in Open Source Software Is a Massive Security Vulnerability
- Why a near-miss cyberattack put US officials and the tech industry on edge
- Backdoor found in widely used Linux utility targets encrypted SSH connections
- What can you actually do to reduce the threat of hacks like xz?
- NYT: Did One Guy Just Stop a Huge Cyberattack?
- [Binarly released a free online s
In this challenge you get an HTML document that renders a lot of colourful hearts.
And you get a JSON object with the information about all the brown colours that were used:
[
This file contains 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
{ | |
"Gore": [ | |
"Blood", "Bloodbath", "Crucifixion", "Bloody", "Flesh", "Bruises", "Car crash", "Corpse", "Crucified", "Cutting", "Decapitate", "Infested", "Gruesome", "Kill (as in Kill la Kill)", "Infected", "Sadist", "Slaughter", "Teratoma", "Tryphophobia", "Wound", "Cronenberg", "Khorne", "Cannibal", "Cannibalism", "Visceral", "Guts", "Bloodshot", "Gory", "Killing", "Surgery", "Vivisection", "Massacre", "Hemoglobin", "Suicide", "Female Body Parts" | |
], | |
"Drugs": [ | |
"Drugs", "Cocaine", "Heroin", "Meth", "Crack" | |
], | |
"Clothing": [ | |
"no clothes", "Speedo", "au naturale", "no shirt", "bare chest", "nude", "barely dressed", "bra", "risqué", "clear", "scantily", "clad", "cleavage", "stripped", "full frontal unclothed", "invisible clothes", "wearing nothing", "lingerie with no shirt", "naked", "without clothes on", "negligee", "zero clothes" | |
], |
NewerOlder