Skip to content

Instantly share code, notes, and snippets.

test
tab
tab
tab
tab
:)
@ted80
ted80 / bwg3 1.1.8b
Created July 14, 2014 10:49
BWG3 1.1.8b for minecraft 1.4.7
BWG3 1.1.8b for minecraft 1.4.7
download:
https://dl.dropboxusercontent.com/u/104255295/Bwg4/BWG3_FORGE_118b.zip
installation:
1. Browse to your .minecraft/bin or server folder.
2. Open minecraft.jar or minecraft_server.jar with WinRAR.
3. Install Forge 6.3.0
@ted80
ted80 / gist:60b77ed535f65911ef68
Last active August 29, 2015 14:06
back button
@Override
public void onBackPressed()
{
new AlertDialog.Builder(this)
.setIcon(android.R.drawable.ic_dialog_alert)
.setTitle("Exit")
.setMessage("Are you sure you want to quit?")
.setPositiveButton("Yes", new DialogInterface.OnClickListener()
{
@Override
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.ted80.airport"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="19" />
public function createExplosion(posX:Number, posY:Number, amount:int, color:uint, minspeed:Number, randspeed:Number, rot:Number = 0, sprayWidth:Number = 180, skip:Number = 0):void
{
var vel:Number = 0;
var r:Number = 0;
for (var i:int = 0; i < amount; i++)
{
r = rot - sprayWidth + (Math.random() * sprayWidth * 2);
particle.x = posX;
particle.y = posY;
particle.rotation = r / 180 * Math.PI;
LICENSE SYSTEM [2015429 10:51:26] Next license update check is after 2015-04-29T12:24:02
Built from 'release/4.6/release' branch; Version is '4.6.2f1 (bd99309c2ad7) revision 192260'; Using compiler version '160040219'
BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1
Initialize mono
Mono path[0] = 'C:/Program Files (x86)/Unity/Editor/Data/Managed'
Mono path[1] = 'C:/Program Files (x86)/Unity/Editor/Data/Mono/lib/mono/2.0'
Mono path[2] = 'C:/Program Files (x86)/Unity/Editor/Data/UnityScript'
Mono config path = 'C:/Program Files (x86)/Unity/Editor/Data/Mono/etc'
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y
using UnityEngine;
using System;
using System.IO;
using System.Collections;
using System.Threading;
public class FFmpeg : MonoBehaviour
{
public delegate void OnProcessExit (FFmpeg _ffmpeg);
public delegate void OnProcessError (FFmpeg _ffmpeg, string _reason);
Crash!!!
SymInit: Symbol-SearchPath: '.;C:\Users\PC\Desktop\emailertest8;C:\Users\PC\Desktop\emailertest8;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'PC'
OS-Version: 6.1.7601 (Service Pack 1) 0x100-0x1
C:\Users\PC\Desktop\emailertest8\emailer.exe:emailer.exe (01170000), size: 12279808 (result: 0), SymType: '-exported-', PDB: 'C:\Users\PC\Desktop\emailertest8\emailer.exe', fileVersion: 4.6.2.61182
C:\Windows\SysWOW64\ntdll.dll:ntdll.dll (77E10000), size: 1572864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SysWOW64\ntdll.dll', fileVersion: 6.1.7601.17725
C:\Windows\syswow64\kernel32.dll:kernel32.dll (771C0000), size: 1114112 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\kernel32.dll', fileVersion: 6.1.7601.18015
C:\Windows\syswow64\KERNELBASE.dll:KERNELBASE.dll (76DB0000), size: 290816 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\KERNELBASE.dll', fileVersion: 6.1.7601.18015
C:\Windows\system3
using UnityEngine;
using System;
using System.Threading;
using System.Collections;
public class Test : MonoBehaviour
{
private Queue queueCalc;
private Queue queueMain;
public Object ditIsEenLock = new Object();
public void threadA()
{
lock(ditIsEenLock)
{
while(true)
{
//endless loop
}