Skip to content

Instantly share code, notes, and snippets.

View 0x61726b's full-sized avatar
🗿

ark 0x61726b

🗿
View GitHub Profile
using UnityEngine;
public class MonoSingleton<T> : MonoBehaviour where T : MonoBehaviour
{
private static T _sInstance;
public static T Instance
{
get
{
#include <iostream>
#include "some_header.h"
int main()
{
inf_int x1(19);
inf_int x2("125");
inf_int x3;
inf_int x4(-97);
inf_int x5("-35");
#include "Button.h"
#include "ColorBox.h"
Button::Button(const ColorBox& box)
{
this->box = box;
}
Button::~Button()
= default;
public class UpdateManager : MonoSingleton<UpdateManager>
{
private string baseUrl = "http://localhost:9876/api/v1/";
private List<LCAPIAssetListResult> remoteAssetList = new List<LCAPIAssetListResult>();
void Awake()
{
StartCoroutine(GetAssetListFromServer());
// AssetBundle pipeline:
@0x61726b
0x61726b / stuff.cs
Created August 22, 2018 22:35
bundle updater
void Awake()
{
StartCoroutine(DictionaryUpdater());
}
IEnumerator DictionaryUpdater()
{
string dictData = ObscuredPrefs.GetString("DictData");
var dictionaries = JsonConvert.DeserializeObject<List<DictionaryPlayerPrefModel>>(dictData);
@0x61726b
0x61726b / pi.py
Created August 17, 2018 19:24
pi
import logging
import os
import datetime
import click
import requests
from flask import Flask, request, send_from_directory, abort, jsonify
from functools import wraps
import config
import socket
@0x61726b
0x61726b / sadad
Created August 16, 2018 17:44
asdas
D:\Arken\Py\py_64_venv\Scripts\python.exe "D:\Program Files\JetBrains\PyCharm 2017.1.4\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 52537 --file D:/Arken/Py/darkflow-master/src/test.py
pydev debugger: process 12044 is connecting
Connected to pydev debugger (build 171.4694.38)
Parsing ./cfg/yolov2.cfg
Parsing cfg/yolo.cfg
Loading yolov2.weights ...
Successfully identified 203934260 bytes
Finished in 0.03806471824645996s
Model has a coco model name, loading coco labels.
@0x61726b
0x61726b / aaaaaaaaa
Created August 15, 2018 19:50
aaaaaaaaaa
Compiling darkflow/cython_utils/nms.pyx because it changed.
Compiling darkflow/cython_utils/cy_yolo2_findboxes.pyx because it changed.
Compiling darkflow/cython_utils/cy_yolo_findboxes.pyx because it changed.
[1/3] Cythonizing darkflow/cython_utils/cy_yolo2_findboxes.pyx
[2/3] Cythonizing darkflow/cython_utils/cy_yolo_findboxes.pyx
[3/3] Cythonizing darkflow/cython_utils/nms.pyx
running build_ext
building 'darkflow.cython_utils.nms' extension
Exception in thread Thread-1:
Traceback (most recent call last):
#include <stdio.h> // fprintf, sprintf, stderr
#include <stdlib.h> // exit
#include <math.h> // sqrt
#include <GLFW/glfw3.h>
#include <Windows.h>
// global variables
// we'll use global variables, since the GLFW callback functions we will add
// later will require access to these variables.
@0x61726b
0x61726b / App.cpp
Created June 4, 2017 12:50
Render a full-screen triangle
//----------------------------------------------------------------------------
// Cef3D
// Copyright (C) 2017 arkenthera
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// https://github.com/arkenthera/cef3d
//---------------------------------------------------------------------------