Skip to content

Instantly share code, notes, and snippets.

@DazWorrall
DazWorrall / listener.coffee
Created December 18, 2011 17:39
A hubot http listening server
# Inspired by http://tomb.io/posts/hubot-ci-and-deploying/
# Its probably tightly bound to the xmpp adapter, and incorrect
# in loads of ways, but its a start.
# POST a json document to /message containing 'room' (the JID of the room
# you want to talk to) and 'message' (the message you want to send)
http = require "http"
Robot = require '../src/robot'
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active July 30, 2024 04:43
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@ggshily
ggshily / Understanding Flash Player with Adobe Scout
Last active December 11, 2015 20:29
[翻译]Understanding Flash Player with Adobe Scout
h1. 通过Adobe Scout深入理解Flash播放器
原文:[Understanding Flash Player with Adobe Scout|http://www.adobe.com/devnet/scout/articles/understanding-flashplayer-with-scout.html]
作者:[Mark Shepherd|http://www.adobe.com/devnet/author_bios/mark_shepherd.html]
作者:[Michael Smith|http://www.adobe.com/devnet/author_bios/michael-smith.html]
转载请注明出处
Adobe Scout 是优化Flash内容异常强大的工具,因为他可以让你看到在Flash播放器里场景背后真正发生了什么.但只有当你理解了Flash播放器为什么那么做的时候那些信息才是最有用的.也只有那时候你才能有效地解决Scout告诉你的问题.
这篇文章的目的是让你对Flash播放器如何工作有一个基础的理解,并且理解与此相关的在Scout里看到的信息.这也是Scout中用到的terminology的一个指南,因此你可以找到Flash播放器执行的不同的活动的意义.如果你用过Scout并且有"我发现我的程序花了很多时间在做X上,但我不知道X是什么意思"的疑问的话,这篇文章正适合你!
注意这不是一个使用Scout界面的指南.如果你不知道如何使用Scout,或者不同的面板干什么,那么你需要读一下[开始指南|http://www.adobe.com/devnet/scout/articles/adobe-scout-getting-started.html].
@possan
possan / list-ipa-udid.sh
Created August 25, 2014 18:42
Simple script to list the allowed UDID's inside an apple IPA package, to verify it's going to work on a specific users device.
#!/bin/sh
#
# Simple script to print out UDID's in apple IPA packaged apps.
#
# Syntax: list-ipa-udid.sh {my-application.ipa}
#
IPA=$1
@prespondek
prespondek / lmap_alpha_mask.frag
Created April 22, 2015 04:12
Cocos2DX Alpha Mask Fragment Shader
#ifdef GL_ES
varying mediump vec2 v_texture_coord;
varying mediump vec2 v_texture_coord1;
#else
varying vec2 v_texture_coord;
varying vec2 v_texture_coord1;
#endif
uniform sampler2D lightmap;
void main(void)
@marcelschmidtdev
marcelschmidtdev / GameSparksHelper.cs
Last active September 12, 2018 09:10
Shows GameSparks API key in Unity window title (Windows)
#if UNITY_EDITOR_WIN
using UnityEngine;
using System.Runtime.InteropServices;
using System.Text;
using UnityEditor;
using System;
namespace GameSparks.Editor
{
[InitializeOnLoad]