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
package { | |
import flash.display.MovieClip; | |
import flash.events.MouseEvent; | |
import flash.media.Sound; | |
import flash.net.URLRequest; | |
public class Main extends MovieClip { | |
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
private function onClickSaveToItunesButton(event:MouseEvent) { | |
var source:File = File.applicationDirectory.resolvePath("./m4a/01_001.m4a"); | |
var target:File = File.documentsDirectory.resolvePath("01_001.m4a"); | |
source.copyTo(target,true); | |
} |
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
package main | |
import ( | |
"net/http" | |
gcm "github.com/googollee/go-gcm" | |
"fmt" | |
) | |
func main() { | |
http.HandleFunc("/sendMessage", sendMessageHandler) |
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
<template name="header"> | |
<header class="container"> | |
<div class="navbar"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<!-- .btn-navbar is used as the toggle for collapsed navbar content --> | |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> |
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
// To call | |
const callURL:String="tel:1234567890"; | |
var targetURL:URLRequest = new URLRequest(callURL); | |
navigateToURL(targetURL); | |
// To SMS | |
const callURL:String="sms:1234567890"; | |
var targetURL:URLRequest = new URLRequest(callURL); | |
navigateToURL(targetURL); |
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
/* automap click event to tap */ | |
_.each(Template, function (obj) { | |
if (obj.events && (typeof obj.events === 'object')) { | |
_.each(obj.events, function (value, key) { | |
try { | |
var args = key.split(/ /); | |
if (args[0] === 'click') { | |
args[0] = 'tap'; | |
obj.events[args.join(' ')] = value; | |
} |
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
package { | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
import flash.events.MouseEvent; | |
import flash.media.Sound; | |
import flash.media.SoundChannel; | |
import flash.media.SoundTransform; |
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
package kr.co.chanet.rsm; | |
import android.app.Activity; | |
import android.app.Notification; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.os.Bundle; |
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
nextid = 0 | |
connected = false; | |
ws = require 'ws' | |
ws = new ws 'ws://localhost:3000/websocket' | |
ws.on 'open', -> | |
console.log "open socket" | |
ws.send JSON.stringify | |
msg: 'connect' | |
version: 'pre1' | |
support: ['pre1'] |