This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ioreg -lw0 | grep \"EDID\" | sed "/[^<]*</s///" | xxd -p -r | strings -6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
#include <fstream> | |
#include <sstream> | |
#include <iostream> | |
using namespace std; | |
#include <GL/glew.h>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var property = new Property<RepositoryAccount>(); | |
Console.WriteLine(property.Value); | |
} | |
public class Property<T> where T : class | |
{ | |
private T _value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void compile() | |
{ | |
const GLchar* vertex_code_char; | |
const GLchar* fragment_code_char; | |
GLint success; | |
GLint logSize = 0; | |
GLchar* infoLog; | |
d_vertex_shader = glCreateShader(GL_VERTEX_SHADER); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |