Skip to content

Instantly share code, notes, and snippets.

<?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) {
<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>
<?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;
@man-oi
man-oi / dabblet.css
Created September 3, 2012 21:08
Untitled
/*HUE API*/
body {
background: #fff;
}
@man-oi
man-oi / index.html
Created September 17, 2012 10:37
Simple blods algorithm used to make strange generative patters. By Tim Holman @twholman
<canvas id='c'></canvas>
@man-oi
man-oi / dabblet.css
Created March 4, 2013 20:42
The first commented line is your dabblet’s title
/**
* 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 March 26, 2013 14:10
The first commented line is your dabblet’s title
/**
* 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 January 19, 2016 21:17
profile image / settings
/**
* profile image / settings
*/
.container {
width: 700px;
height: auto;
margin: auto;
background-color: #333;
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]
@man-oi
man-oi / keybase.md
Created April 1, 2018 17:23
Keybase proof

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: