- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Copy only the p4merge.app file into your /Applications/ directory
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
fn main() -> Result<()> { | |
let args = Args::parse(); | |
let zipfile = File::open(args.zipfile)?; | |
let zipfile = CloneableFile::new(zipfile); | |
let zip = zip::ZipArchive::new(zipfile)?; | |
let file_count = zip.len(); | |
println!("Zip has {} files", file_count); | |
(0..file_count).into_par_iter().for_each(|i| { | |
let mut myzip = zip.clone(); |
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.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER | |
using UnityEngine.U2D; | |
#endif | |
using Sprites = UnityEngine.Sprites; | |
#if UNITY_EDITOR |
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
#!c:/ruby/bin/ruby.exe | |
require 'rubygems' | |
require 'rubygems/gem_runner' | |
require 'rubygems/exceptions' | |
def install(lib) | |
begin | |
Gem::GemRunner.new.run ['install', lib] | |
rescue Gem::SystemExitException => e | |
end |
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 System.Collections; | |
using System; | |
using System.Collections.Generic; | |
public class GravityCamera : MonoBehaviour | |
{ | |
public GameObject target; | |
public Vector3 centerOffset; | |
public float sensitivity = 1000; |
Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.
- [UPDATE 4] iOS 10 update: apparently settings now can be reached using App-Pref instead of prefs
[UPDATE 3] For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached[UPDATE 2] The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead[UPDATE 1] Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.
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; | |
/// <summary> | |
/// Resizes a UI element with a RectTransform to respect the safe areas of the current device. | |
/// This is particularly useful on an iPhone X, where we have to avoid the notch and the screen | |
/// corners. | |
/// | |
/// The easiest way to use it is to create a root Canvas object, attach this to a "SafeAreaContainer" | |
/// child of that canvas, and then to lay out other UI elements within the SafeAreaContainer, which | |
/// will adjust size appropriately for the current device. |
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
Shader "Custom/Circular Circles" { | |
Properties { | |
_CircleCount ("Circle Count", Float ) = 8 | |
_CircleRadius ("Circle Radius", Range(0, 1)) = 0.18 | |
_CircleSharpness ("Circle Sharpness", Range(0, 0.999)) = 0.95 | |
_GroupRadius("Group Radius", Range(0, 1)) = 0.6 | |
} | |
SubShader { | |
Pass { | |
CGPROGRAM |
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
/* | |
* Helper class for XTEA en/decryption of arbitrary data. | |
* | |
* Copyright (c) 2017, Henrik Heine | |
*/ | |
using System; | |
using System.IO; | |
using System.Text; |
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.UI; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Add this component to your Cinemachine Virtual Camera to have it shake when calling its ShakeCamera methods. | |
/// </summary> | |
public class CinemachineCameraShaker : MonoBehaviour | |
{ |
NewerOlder