This file contains 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
public class Singleton<T> : MonoBehaviour where T : Singleton<T> | |
{ | |
static public T s_Instance; | |
static public T Instance | |
{ | |
get | |
{ | |
if (s_Instance == null) | |
{ |
This file contains 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 UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
public class PixalizationRenderFeature : ScriptableRendererFeature | |
{ | |
class PixalizationRenderPass : ScriptableRenderPass | |
{ | |
PixalizationRenderFeature _parent; |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace BTAI | |
{ | |
public enum BTState | |
{ | |
Failure, | |
Success, |
This file contains 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 System; | |
using System.Diagnostics; | |
namespace VoidSharedProject | |
{ | |
// Results: | |
// 1: 00:00:47.3721840 | |
// 2: 00:01:14.6771620 |
This file contains 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
;;; packages.el --- gyp layer packages file for Spacemacs. | |
;; | |
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors | |
;; | |
;; Author: Dmitry Mozgin <m039@Dmitrys-MBP> | |
;; URL: https://github.com/syl20bnr/spacemacs | |
;; | |
;; This file is not part of GNU Emacs. | |
;; | |
;;; License: GPLv3 |
This file contains 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 "IBar.hpp" | |
// Bar hosts IBar | |
class Bar { | |
public: | |
IBar *impl; |
This file contains 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
#lang racket/gui | |
;;; Exercise 37.1 from the HtDP book. A little bit overdone. | |
;;; | |
;;; GUI related functions | |
;;; | |
(define (create-frame title size draw-callback on-event-handler) | |
(define custom-canvas% |
This file contains 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
/// <summary> | |
/// TouchController allows you to handle basic swipes (left, right, top, bottom) on mobile device. | |
/// | |
/// Usage: extend this class and don't forget to call Update in MonoBehaviour.Update | |
/// <summary> | |
public abstract class TouchController { | |
private readonly float _swipeThreshold; | |
private Vector2 _firstPosition; |
This file contains 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
# clean application data | |
adb shell pm clear com.android.browser |
This file contains 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
;; Playing with racket | |
(require net/url) | |
(require json) | |
(require rnrs/io/ports-6) | |
(define link "http://graph.facebook.com/") | |
(define (get-username id) | |
(let ((ht (call-with-port (get-pure-port (string->url (string-append link id))) | |
(lambda (p) |
NewerOlder