I hereby claim:
- I am manicai on github.
- I am manicai (https://keybase.io/manicai) on keybase.
- I have a public key ASD4YpAORkydnE5bPaIYhuZtg3jKguy9nKkui6_wzsNflwo
To claim this, I am signing this object:
// Typescript | |
export function dump_image(image: ImageData) { | |
const canvas = document.createElement("canvas") as HTMLCanvasElement; | |
canvas.width = image.width; | |
canvas.height = image.height; | |
canvas.getContext("2d")!.putImageData(image, 0, 0); | |
return canvas.toDataURL(); | |
} |
I hereby claim:
To claim this, I am signing this object:
namespace Receiver | |
{ | |
using System.ServiceModel; | |
[ServiceContract] | |
public interface IReceiver | |
{ | |
[OperationContract] | |
void AddLine(); | |
} |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
using System.Windows.Forms; | |
namespace Child | |
{ |
// Reference | |
// Microsoft.SqlServer.ConnectionInfo.dll | |
// Microsoft.SqlServer.Management.Sdk.Sfc.dll | |
// Microsoft.SqlServer.SqlEnum.dll | |
// Microsoft.SqlServer.Smo.dll | |
// all from %PROGRAM FILES%\Microsoft SQL Server\100\SDK\Assemblies | |
using Microsoft.SqlServer.Management.Smo; | |
using Microsoft.SqlServer.Management.Common; |
#!/usr/bin/env python | |
# | |
# Find prices of all possibilities of ticket allocations in the London | |
# 2012 Olympic lottery. | |
# | |
from itertools import chain, combinations | |
import re | |
import fileinput | |
def remove_pound(s): |
class TimePeriod | |
{ | |
private: | |
unsigned int value_; | |
public: | |
TimePeriod(int days, int months, int years) | |
{ | |
value_ = days; | |
value_ += months << 16; |
;------------------------------------------------------------------------------ | |
; CArray | |
;------------------------------------------------------------------------------ | |
CArray<*>|CDWordArray|CWordArray|CByteArray|CUIntArray|CPtrArray|CObArray|CStringArray{ | |
preview | |
( | |
#( "[", [$c.m_nSize], "](", | |
#array | |
( | |
expr : $c.m_pData[$i], |
from random import normalvariate | |
########################################################################## | |
# "Real world" that we're trying to track | |
class RealWorld: | |
def __init__(self): | |
self.position = 0.0 | |
self.velocity = 0.5 | |
self.time_step = 0.1 | |
self.time = 0.0 |