Skip to content

Instantly share code, notes, and snippets.

import taichi as ti
ti.init(ti.gpu)
# global control
paused = ti.field(ti.i32, ())
# gravitational constant 6.67408e-11, using 1 for simplicity
G = 1
PI = 3.141592653
-(void)test:(NSString*)original{
NSArray *originalParts = [original componentsSeparatedByString:@","];
NSMutableString *newString = [NSMutableString new];
for (NSString *string in originalParts) {
[newString appendString:[string stringByPaddingToLength:string.length + 7 withString:@" " startingAtIndex:0]];
}
NSLog(@"Finished Product: %@", newString);
}
@interface NSString (Extension)
- (BOOL) isAnEmail;
- (BOOL) isNumeric;
@end
@implementation NSString (Extension)
/**
#pragma strict
var _gameOver:GameObject; //Gameobject visible when player has died
var _levelComplete:GameObject; //Gameobject visible when level complete
var _scoreTextMesh:TextMesh; //Displays score from previous level
var _retryButton:Button; //Insert retry button to go back to previously loaded level
private var _previousLevel:String;
//var cb:Chartboost;
function Start () {

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

// Capture author info & user status
NSDictionary *articleParams = [NSDictionary dictionaryWithObjectsAndKeys:
@"John Q", @"Author",
@"Registered", @"User_Status",
nil];
[Flurry logEvent:@"Article_Read" withParameters:articleParams];
Temp/
obj/
Library/cache
Library/metadata
Library/previews
Library/ScriptAssemblies
Assembly-CSharp-Editor-firstpass-vs.csproj
Assembly-CSharp-Editor-firstpass.csproj
@gclsoft
gclsoft / play.cs
Created August 23, 2014 16:55
play.cs
using UnityEngine;
using System.Collections;
using GoogleMobileAds.Api;
using System;
public class play : MonoBehaviour {
public InterstitialAd interstitial;
public InterstitialAd interstitial2;
// Use this for initialization
void Start () {
@gclsoft
gclsoft / MuffinRushAssets.cs
Created August 15, 2014 12:35
MuffinRushAssets.cs
/// Copyright (C) 2012-2014 Soomla Inc.
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unless required by applicable law or agreed to in writing, software
/// distributed under the License is distributed on an "AS IS" BASIS,
/// Copyright (C) 2012-2014 Soomla Inc.
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unless required by applicable law or agreed to in writing, software
/// distributed under the License is distributed on an "AS IS" BASIS,