Skip to content

Instantly share code, notes, and snippets.

@shallaa
shallaa / Billiad.lua
Last active December 29, 2015 12:19
당구공 물리.
-- Billiard
function setup()
parameter.watch("X")
parameter.watch("Y")
parameter.watch("MASS")
parameter.watch("VX")
parameter.watch("VY")
balls = {}
@shallaa
shallaa / bounce.html
Last active December 29, 2015 17:28
bounce.html
<!DOCTYPE html>
<html lang="ko">
<title>Bounce</title>
<meta name="keywords" content="bs5" />
<meta name="description" content="bs5 Test suite" />
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@shallaa
shallaa / NaverRadio.mxml
Last active December 30, 2015 02:39
네이버 라디오 로그인 처리
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="400" height="364"
showStatusBar="false"
creationComplete="onCreationCompleteApp()">
<fx:Script>
<![CDATA[
/**
@shallaa
shallaa / NaverRadio.mxml
Last active December 30, 2015 02:39
HTML component click event dispatch
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="400" height="364"
showStatusBar="false"
creationComplete="onCreationCompleteApp()">
<fx:Script>
<![CDATA[
@shallaa
shallaa / AppDelegate.cs
Last active December 30, 2015 17:09
App Lifecycle Methods
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace AppLifeCycleMethods
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
@shallaa
shallaa / TraceLog.as
Created December 30, 2013 02:43
trace log in browser console.
package
{
import flash.display.Sprite;
import flash.external.ExternalInterface;
public class DebugConsole extends Sprite
{
public function DebugConsole()
{
ExternalInterface.call( "eval", "var console = window.console || {log:function(){}};" );
@shallaa
shallaa / iAngleFinder.lua
Created January 5, 2014 07:56
iAngleFinder
function setup()
displayMode(FULLSCREEN)
supportedOrientations(LANDSCAPE_RIGHT)
bigNumbers = {"", "80", "70", "60", "50", "40", "30", "20", "10", "0",
"10", "20", "30", "40", "50", "60", "70", "80", ""}
smallNumbers = {"", "10", "20", "30", "40", "50", "60", "70", "80", "90",
"80", "70", "60", "50", "40", "30", "20", "10", ""}
end
@shallaa
shallaa / default.vert
Created October 4, 2014 13:31
vertex shader
attribute vec3 aVertexPosition;
attribute vec3 aVertexNormal;
uniform mat4 uMVMatrix;
uniform mat4 uPMatrix;
uniform mat3 uNMatrix;
varying vec3 vNormal;
varying vec3 vEyeVec;
<!DOCTYPE html>
<html lang="ko">
<head>
<title>Hello Triangle</title>
<meta name="keywords" content="shallaa, webgl, bsjs"/>
<meta name="description" content="shallaa, webgl, bsjs"/>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
window['requestAnimationFrame'] = (function () {
return window['requestAnimationFrame'] || window['webkitRequestAnimationFrame'] || window['mozRequestAnimationFrame'] || function (callback) {
window.setTimeout(callback, 1000 / 60);
};
})();
var SoftEngine;
(function (SoftEngine) {
var Color4 = (function () {
function Color4(initialR, initialG, initialB, initialA) {