Skip to content

Instantly share code, notes, and snippets.

View Eugeny's full-sized avatar

Eugene Eugeny

View GitHub Profile
package by.fksis.schedule.parser;
import fksis.domain.entities.ScheduledClass;
import org.htmlparser.Node;
import org.htmlparser.Parser;
import org.htmlparser.filters.CssSelectorNodeFilter;
import org.htmlparser.http.ConnectionManager;
import org.htmlparser.util.NodeList;
import java.io.InputStream;
using UnityEngine;
[ExecuteInEditMode]
public class HumanAdaptation : MonoBehaviour
{
21public Shader Shader;
public int InitialSampling = 256;
public float AdaptationCoefficient = 0.01f;
public float Key = 0.5f, White = 0.5f, Limit = 0.02f;
public int LuminanceGridSize = 1;
Shader "Custom/HumanAdaptation" {
21Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
CGINCLUDE
Shader "Custom/HumanEye" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
CGINCLUDE
#pragma fragmentoption ARB_precision_hint_fastest
using UnityEngine;
using System.Collections;
using System.IO;
#if UNITY_ANDROID
using FacebookAccess = FacebookAndroid;
#elif UNITY_IPHONE
using FacebookAccess = FacebookBinding;
#endif
public class Global : MonoBehaviour
{
using UnityEngine;
using System.Collections;
public class SlotMachineT_1 : MonoBehaviour
{
private bool looby=false;
private bool r1=true,r2=true,r3=true,r4=true,r5=true;
public AudioSource SoundSX;
//public AudioClip Audio3;
public static bool BUYmn=false;
@Eugeny
Eugeny / gist:3840156
Created October 5, 2012 14:38
Хлам
WD Caviar 2540 540Mb IDE - 1 шт
Сетевые карты на коаксиал (ISA) - 5 шт
Звук Creative PCI - 1 шт
Неопознанное AGP видео (VGA) - 1 шт
Tseng Labs ET6000 видео (VGA), PCI - 2 шт
Сидюк Acer 50x IDE - 1 шт
Флоп обыкновенный - 2 шт
Отдам, e-mail: [email protected]
HashMap<String, String> params = new HashMap();
params.put("addBroadcast", "1");
params.put("auth_login", username);
params.put("auth_key", accessKey);
params.put("text", text);
params.put("expires", expires);
return new JSONObject(query(params));
if (request.getParameter("addBroadcast") != null) {
User u = Authenticator.authenticate(request);
Gson gson = new Gson();
response.setCharacterEncoding("utf8");
if (u == null) {
response.getWriter().write("Denied");
} else {
if (u.getUserRole() != UserRole.GROUP_MONITOR) {
response.getWriter().write("Not available");
return;
class BankUser (Model):
name = CharField(...)
login = CharField(...)
password = PasswordField(...)
@property
def overdrafted_accounts(self):
// SELECT * FROM db.bankaccount WHERE user__id=1 AND money<0
return BankAccount.objects.filter(user=self, money__lt=0).all()