Skip to content

Instantly share code, notes, and snippets.

@codingadventures
codingadventures / typeCrawler.cs
Last active January 19, 2018 17:05
crawls to extract all assemblies
using LibA;
using Mono.Reflection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
ioreg -lw0 | grep \"EDID\" | sed "/[^<]*</s///" | xxd -p -r | strings -6
void test()
{
FILE *tFile = fopen("test.txt", "r");
int a[40];
int i = 0;
int temp;
while(fscanf(tFile, "%d", &temp) != EOF){
a[i++] = temp;
}
#pragma once
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
using namespace std;
#include <GL/glew.h>;
void Main()
{
var property = new Property<RepositoryAccount>();
Console.WriteLine(property.Value);
}
public class Property<T> where T : class
{
private T _value;
@codingadventures
codingadventures / CompileLink.cpp
Created February 17, 2015 17:44
Compile and link for shaders
template<typename T>
vector<T> ArrayConversion(int n_args,...)
{
vector<T> t;
va_list ap;
va_start(ap, n_args);
for(int i = 0; i < n_args; i++) {
T a = va_arg(ap, T);
t.push_back(a);
}