View PixalizationRenderFeature.cs
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; |
View BT.cs
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, |
View Final.cs
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 |
View spacemacs-gyp-layer.el
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 |
View Bar.hpp
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; |
View 37.1.rkt
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% |
View TouchController.cs
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; |
View gist:8384823
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 |
View get-username.rkt
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) |
View MemoryAccountContentProvider.java
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
/** WTFContentProvider.java --- | |
* | |
* Copyright (C) 2013 Mozgin Dmitry | |
* | |
* Author: Mozgin Dmitry <flam44@gmail.com> | |
* | |
* | |
*/ | |
package com.m039.example.provider; |
NewerOlder