collecting links and documents about the topic
Object Systems (2004, as used in Thief 1998) http://chrishecker.com/images/6/6f/ObjSys.ppt
#!/usr/bin/perl | |
# | |
# PackageApplication | |
# | |
# Copyright (c) 2009-2012 Apple Inc. All rights reserved. | |
# | |
# Package an iPhone Application into an .ipa wrapper | |
# | |
use Pod::Usage; |
collecting links and documents about the topic
Object Systems (2004, as used in Thief 1998) http://chrishecker.com/images/6/6f/ObjSys.ppt
void Main() | |
{ | |
var computerName = Enumerable.Range(1, 250).Select(x => "192.10.10." + x).ToArray(); | |
// var computerName = Util.Cache(() => Enumerable.Range(1, 254).SelectMany(i => Enumerable.Range(10, 4).SelectMany(j => new[] { $"192.10.{j}.{i}" })).ToArray()); | |
var sw = Stopwatch.StartNew(); | |
NetworkInformationExtensions.PingAsync(computerName, TimeSpan.FromMilliseconds(1), false).Result.Where(x => x.Status == IPStatus.Success); | |
sw.Elapsed.TotalMilliseconds.Dump("Resolve = false, PingTimeout = 1"); | |
sw.Restart(); |
// "Seascape" by Alexander Alekseev aka TDM - 2014 | |
// Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License | |
// Adapted to Haxe Kha by Lubos Lenco | |
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform float globalTime; |
Shader "Custom/Flow Map" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
// Flow | |
_FlowMap ("Flow Map", 2D) = "white" {} | |
_FlowSpeed ("Flow Speed", float) = 0.05 |
#Unity3D optimization tips
Some code allocates memory when running in the editor and not on the device. This is due to Unity doing some extra error handling so possible error messages can be output in the console. Much of this code is stripped during build. It's therefore important to profile on device, and do it regularly.
Optimizations often makes code more rigid and harder to reason. Don't do it until you really need to.
When profiling, wrap methods or portions of a method in Profiler.BeginSample(string name) and Profiler.EndSample() to make them easier to find in the profiler.
public class SomeClass {
var readline = require('readline'), | |
fs = require('fs'); | |
var LinkMap = function(filePath) { | |
this.files = [] | |
this.filePath = filePath | |
} | |
LinkMap.prototype = { | |
start: function(cb) { |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace WWWKit | |
{ | |
/// <summary> | |
/// A handy class to use WWW class and WWWForm class. | |
/// | |
/// Features: |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Security.Cryptography; | |
static class Program | |
{ | |
static void Run(IEnumerable<string> args) |