Skip to content

Instantly share code, notes, and snippets.

View createThumbnail.php
<?php
function create_thumb($img_src, $thumb_width, $thumb_height, $thumb_dir, $id, $setW = false, $setH = false) {
$image_infos = @getimagesize($img_src);
$width = $image_infos[0];
$height = $image_infos[1];
$type = $image_infos[2];
$name = basename($img_src);
if ($setW == true || $setH == true) {
if ($setW == true) {
View country_select.html
<select>
<optgroup label="">
<option value="" selected="selected">Select Country</option>
</optgroup>
<optgroup label="common choices">
<option value="United Kingdom">United Kingdom</option>
<option value="United States">United States</option>
<option value="France">France</option>
<option value="Germany">Germany</option>
<option value="Spain">Spain</option>
View read images from dir
<?php
$images = array(); // Array-Variable definieren
$folder = "assets/images/about/";
$dir = openDir($folder);
while ($file = readDir($dir)) {
if ($file != "." && $file != ".." && !is_dir($file) && strpos($file, ".") > 0) {
if (strstr($file, ".gif") ||
strstr($file, ".png") ||
strstr($file, ".jpg")) {
$folder_file = $folder . $file;
View dabblet.css
/*HUE API*/
body {
background: #fff;
}
@man-oi
man-oi / index.html
Created Sep 17, 2012
Simple blods algorithm used to make strange generative patters. By Tim Holman @twholman
View index.html
<canvas id='c'></canvas>
@man-oi
man-oi / dabblet.css
Created Mar 4, 2013
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
body {
background: #fff;
}
#wrapper {
width: 700px;
height: 30px;
margin: auto;
@man-oi
man-oi / dabblet.css
Created Mar 26, 2013
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
body {
background: #fff;
}
#wrapper {
width: 700px;
height: 30px;
margin: auto;
@man-oi
man-oi / dabblet.css
Last active Jan 19, 2016
profile image / settings
View dabblet.css
/**
* profile image / settings
*/
.container {
width: 700px;
height: auto;
margin: auto;
background-color: #333;
View Apache Error Testing
ErrorDocument 403 /403.php
ErrorDocument 401 /401.php
ErrorDocument 410 /410.php
RewriteCond %{QUERY_STRING} ^status=401$
RewriteRule ^ - [L,R=401]
RewriteCond %{QUERY_STRING} ^status=403$
RewriteRule ^ - [L,R=403]
RewriteCond %{QUERY_STRING} ^status=404$
RewriteRule ^ - [L,R=404]
View keybase.md

Keybase proof

I hereby claim:

  • I am wumble on github.
  • I am wumble (https://keybase.io/wumble) on keybase.
  • I have a public key ASDTSzmIQRvMhavkcqsy-hmncrzuv9g_w0nGcehiPBhb4go

To claim this, I am signing this object:

You can’t perform that action at this time.