Skip to content

Instantly share code, notes, and snippets.

View santanor's full-sized avatar
👻

Jose Antonio santanor

👻
View GitHub Profile
@santanor
santanor / GhostObject.cs
Last active April 5, 2018 12:14
GhostObject
public class Foo {
public Bar Bar;
///Java style
public Bar getBar(){
if(Bar == null){
Bar = new Bar();
Bar.getWhateverYouWantToGet();
}
return Bar;
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+
/// <summary>
/// Process a certain region of the image and returns the average of the color
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
/// <param name="width"></param>
/// <param name="height"></param>
/// <returns></returns>
private Color _processRegion(int x, int y, int width, int height)
{
Date , GPU Core Clock [MHz] , GPU Memory Clock [MHz] , GPU Temperature [°C] , Fan Speed (%) [%] , Fan Speed (RPM) [RPM] , GPU Load [%] , Memory Controller Load [%] , Memory Usage (Dedicated) [MB] , Memory Usage (Dynamic) [MB] , VDDC [V] , VDDC Current [A] , VDDC Power [W] ,
2017-03-21 00:07:16 , 330.5 , 1450.0 , 75.0 , 33 , 314 , 6 , 1 , 623 , 90 , 0.925 , 9.6 , 7.0 ,
2017-03-21 00:07:17 , 352.3 , 1450.0 , 75.0 , 33 , 314 , 0 , 0 , 623 , 90 , 0.919 , 11.9 , 13.3 ,
2017-03-21 00:07:18 , 338.0 , 1450.0 , 75.0 , 33 , 314 , 8 ,
@santanor
santanor / StorePhoneNumbers
Created December 17, 2014 10:42
PhoneNumbers
private static Random random = new Random(DateTime.Now.Millisecond);
static void Main(string[] args)
{
string[] numbers = new string[1000000];
string[] offsets = new string[1000000];
for (int i = 0; i < numbers.Length; i++)
numbers[i] = getNumber();
Array.Sort(numbers);
System.IO.File.WriteAllLines("phones.txt", numbers);
32100123 -> %11000011 %10100001 -> $C3 $A1
23211232 -> %11100111 %01111010 -> $E7 $7A
12322321 -> %01111110 %10100101 -> $7E $A5
01233210 -> %00111100 %01011010 -> $3C $5A
01233210 -> %00111100 %01011010 -> $3C $5A
12322321 -> %01111110 %10100101 -> $7E $A5
23211232 -> %11100111 %01011010 -> $E7 $5A
32100123 -> %11000011 %10100101 -> $C3 $A5
INCLUDE "gbhw.inc" ;Archivo de definiciones
SECTION "start" ,HOME[$0100]
nop
jp inicio
;Cabecera de la ROMM
ROM_HEADER ROM_NOMBC, ROM_SIZE_32KBYTE, RAM_SIZE_0KBYTE
;Inicio del programa
package main
import (
"code.google.com/p/go.net/websocket"
"log"
"net/http"
"time"
)
func wsHandler(ws *websocket.Conn) {