Skip to content

Instantly share code, notes, and snippets.

@WiNiFiX
WiNiFiX / SpriteBatchExample.cs
Created Jul 21, 2019 — forked from bcreswell/SpriteBatchExample.cs
SharpDX Direct2D spritebatch example
View SpriteBatchExample.cs
using SharpDX;
using _d2d = SharpDX.Direct2D1;
using _d3d = SharpDX.Direct3D;
using _d3d11 = SharpDX.Direct3D11;
using _dxgi = SharpDX.DXGI;
using _directWrite = SharpDX.DirectWrite;
using _wic = SharpDX.WIC;
using SharpDX.Direct2D1;
using SharpDX.Direct3D;
using SharpDX.Direct3D11;
View mul.c
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
static unsigned short lookup_table[512];
unsigned short mul(unsigned char a, unsigned char b)
{
unsigned short x = a + b, y = (a > b) ? (a - b) : (b - a);
return lookup_table[x] - lookup_table[y];
@x1001000
x1001000 / raspberry_pi_learns_to_drive.ipynb
Created Jul 21, 2019
Raspberry_Pi_Learns_to_Drive.ipynb
View raspberry_pi_learns_to_drive.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View pubg_hosts.txt
127.0.0.1 pingma.qq.com
127.0.0.1 down.qq.com
127.0.0.1 111.61.64.40
127.0.0.1 113.96.256.150
127.0.0.1 119.29.49.201
127.0.0.1 180.123.15.193
127.0.0.1 180.103.6.49
127.0.0.1 down.qq.com
127.0.0.1 58.20.9.47
127.0.0.1 203.285.151.224
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
View Output path comparison
nix-env failed:
error: while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-1-lassulus.ewr1.nix.ci/.gc-of-borg-outpaths.nix:44:12, called from undefined position:
while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-1-lassulus.ewr1.nix.ci/pkgs/top-level/release-lib.nix:121:6, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-1-lassulus.ewr1.nix.ci/lib/attrsets.nix:292:43:
while evaluating 'hydraJob' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-1-lassulus.ewr1.nix.ci/lib/customisation.nix:157:14, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-1-lassulus.ewr1.nix.ci/pkgs/top-level/release-lib.nix:121:14:
while evaluating the attribute 'drvPath' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-1-lassulus.ewr1.nix.ci/lib/customisation.nix:174:13:
while eval
View php.sh
sudo yum install epel-release yum-utils
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum-config-manager --enable remi-php73
sudo yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd
View cooking.py
from abc import ABC, ABCMeta, abstractmethod
class ede(ABC):
cook = "Your food is cooked"
def foods(self):
return self.cook
class Kare_Kare(ede):
View CalculateLoginBehaviourRisk.siddhi
from dayFilterStream
select messageId, username, ifThenElse(minLoginTime<=loginHour and loginHour<=maxLoginTime, 0.0, ifThenElse(minLoginTime-2<loginHour and loginHour<maxLoginTime+2, 0.5, 1.0)) as risk
insert into OutputStream;
You can’t perform that action at this time.