I hereby claim:
- I am superic on github.
- I am superic (https://keybase.io/superic) on keybase.
- I have a public key whose fingerprint is 32BD 33BA E417 7E95 50AB CA66 7E98 718A F158 D7C1
To claim this, I am signing this object:
<div id="test">just testing</div> |
using System; | |
using System.Web.Mvc; | |
using System.Text; | |
namespace Web.Extensions | |
{ | |
public static class HtmlHelperExtensions | |
{ | |
#region Private Statics | |
private static Bitmap BlackAndWhite(Bitmap image, Rectangle rectangle) | |
{ | |
Bitmap blackAndWhite = new System.Drawing.Bitmap(image.Width, image.Height); | |
// make an exact copy of the bitmap provided | |
using(Graphics graphics = System.Drawing.Graphics.FromImage(blackAndWhite)) | |
graphics.DrawImage(image, new System.Drawing.Rectangle(0, 0, image.Width, image.Height), | |
new Rectangle(0, 0, image.Width, image.Height), GraphicsUnit.Pixel); | |
// for every pixel in the rectangle region |
private static Bitmap Pixelate(Bitmap image, Rectangle rectangle, Int32 pixelateSize) | |
{ | |
Bitmap pixelated = new System.Drawing.Bitmap(image.Width, image.Height); | |
// make an exact copy of the bitmap provided | |
using (Graphics graphics = System.Drawing.Graphics.FromImage(pixelated)) | |
graphics.DrawImage(image, new System.Drawing.Rectangle(0, 0, image.Width, image.Height), | |
new Rectangle(0, 0, image.Width, image.Height), GraphicsUnit.Pixel); | |
// look at every pixel in the rectangle while making sure we're within the image bounds |
private static Bitmap Blur(Bitmap image, Rectangle rectangle, Int32 blurSize) | |
{ | |
Bitmap blurred = new Bitmap(image.Width, image.Height); | |
// make an exact copy of the bitmap provided | |
using(Graphics graphics = Graphics.FromImage(blurred)) | |
graphics.DrawImage(image, new Rectangle(0, 0, image.Width, image.Height), | |
new Rectangle(0, 0, image.Width, image.Height), GraphicsUnit.Pixel); | |
// look at every pixel in the blur rectangle |
$person = (object) array( | |
"name" => "Eric", | |
"location" => "SF", | |
"sayHello" => function () { | |
return "Hello!"; | |
} | |
); | |
// does not work with anonymous functions in PHP | |
var_dump($person->sayHello()); |
<?php | |
$input = 'foo'; | |
while(!empty($input)) { | |
fwrite(STDOUT, "Enter something: "); | |
$input = trim(fgets(STDIN)); | |
fwrite(STDOUT, "\nYou entered: $input\n"); | |
} |
I hereby claim:
To claim this, I am signing this object:
A | |
ABA | |
ABCBA | |
ABCDCBA | |
ABCDEDCBA | |
ABCDEFEDCBA | |
ABCDEFGFEDCBA | |
ABCDEFGHGFEDCBA | |
ABCDEFGHIHGFEDCBA | |
ABCDEFGHIJIHGFEDCBA |