Skip to content

Instantly share code, notes, and snippets.

View karno's full-sized avatar
🤔

Karno karno

🤔
View GitHub Profile
using System;
namespace K.Particles
{
static public class UnixEpoch
{
const long EPOCH = 621355968000000000;
/// <summary>
/// Get Unix epoch from DateTime
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using Krilib.Control.Surface;
namespace Krile.Forms.MainForm.Controls.XTab
{
public class XTabMouseManager : IDisposable
using System;
using System.Windows.Forms;
using Microsoft.WindowsAPICodePack.Dialogs;
namespace K.WindowsEx
{
/// <summary>
/// Extra message box
/// </summary>
/// <remarks>
//Arithmetic Operation Block
#include "litbas.h"
#include "arith_i.h"
BOOL g_ArithmeticError = FALSE;
BOOL g_NoPrintError = FALSE;
//arithession root
double Arith(const char *arith)
{
G_ERR_Arith = FALSE;
using System;
using System.Drawing;
using System.Xml.Linq;
namespace Std.Util
public static class LinqConverter
{
public static string ParseString(this XElement e)
{
# http://vipprog.tumblr.com/post/48288901/quiz-add-parenthese
def CompleteBracket(arg):
lt = 0
gt = 0
i = 0
for c in arg :
if c == "(" :
gt += 1 #閉じ待ち追加
elif c == ")" :
using System;
using System.Windows.Forms;
namespace Std
{
public static class Threading
{
/// <summary>
/// Invoking method with thread safe.
/// </summary>
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
namespace Std.Network
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Std.Tweak;
namespace Mintw
{
/// <summary>
/// Twitterへのアクセサ