Skip to content

Instantly share code, notes, and snippets.

@yakreved
yakreved / SocketMessagesDispatcher
Created February 21, 2014 14:29
SocketMessagesDispatcher
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System;
// В этот класс преобразуется JSON сообщения от сервера
public struct SocketMessage {
@yakreved
yakreved / gist:8283292
Created January 6, 2014 14:05
japonka.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity Web Player | Japanese Crosswords</title>
<!-- Unity stuff -->
<script type='text/javascript' src='https://ssl-webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/jquery.min.js'></script>
<script type="text/javascript">
var unityObjectUrl = "http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js";
if (document.location.protocol == 'https:')
@yakreved
yakreved / kg_5_sharp
Created December 23, 2013 17:18
kg5 sharp
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@yakreved
yakreved / unit_test_unity3d
Created December 23, 2013 02:09
unit test unity3d move object test
//тестируемый скрипт
using UnityEngine;
using System.Collections;
public class move : MonoBehaviour {
// Use this for initialization
void Start () {
}
@yakreved
yakreved / kg_lab_5
Created December 1, 2013 19:41
kg lab 5
#include "stdafx.h"
#include "графика 5.h"
#include <math.h>
#include "Resource.h"
#include<stdio.h>
int key1 = 0, key2 = 0, f = 0, o = 0, R = 0;
#define PI 3.14159265
char fa[10] = " ", Ra[10] = " ", oa[10] = " ";
void Draw(int[12][4], HDC);
@yakreved
yakreved / win32 black-white picture
Created November 18, 2013 19:07
win32 делаем картинку черно-белой
// kg4.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "kg4.h"
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
@yakreved
yakreved / kg4
Last active December 27, 2015 10:29
kg4 ВЧ-фильтрация c++ win32
// kg4.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "kg4.h"
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
@yakreved
yakreved / uzbagoin
Last active December 25, 2015 22:09
текст, узбагойся!
import re
text = "Вовеки не замрет, не прекратится\n\
Поэзия земли. Когда в листве,\n\
От зноя ослабев, умолкнут птицы,\n\
Мы слышим голос в скошенной траве\n\
\n\
Кузнечика. Спешит он насладиться\n\
Своим участьем в летнем торжестве,\n\
То зазвенит, то снова притаится\n\
@yakreved
yakreved / Japan_crosswords_json
Last active December 22, 2015 04:18
Japan-crossword json
{
"names":
{
"English":"Chess",
"Russian":"Шахматы"
},
"width": 4,
"data":"1010101010101010"
}
@yakreved
yakreved / sicp_2_97
Created September 1, 2013 22:13
sicp 2.97
;b
;; ================error=================================================
(define (error . l)
(display l)
)
;; ======================================================================
(define (install-polynomial-package)
;; internal procedures
;; representation of poly