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
adb logcat | grep 'Web Console' | |
- or - | |
adb logcat | grep "CONSOLE" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
This is an example that shows how to create an application that uses | |
an embedded sqlite database | |
in a mobile device (iphone,ipod,ipad,android using phonegap, jquery | |
and sqlite. | |
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
map = {} | |
map.width = 79 | |
map.height = 21 | |
map.cellWidth = 13 | |
map.cellHeight = 7 | |
map.rooms = {} |
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
map = {} | |
map.width = 70 | |
map.height = 30 | |
function initMap() | |
for i = 1, map.width do | |
map[i] = {} | |
for j = 1, map.height do | |
map[i][j] = "." |
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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
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
-- From: lua-users.org | |
-- http://lua-users.org/wiki/CopyTable | |
--[[ | |
Shallow Copy | |
This a simple, naive implementation. It only copies the top level value and its direct children; there is no handling of deeper children, metatables or special types such as userdata or coroutines. It is also susceptible to influence by the __pairs metamethod. | |
]]-- | |
function shallowcopy(orig) |
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
############################################################################## | |
# gitignore template | |
# | |
# Based on article: https://help.github.com/articles/ignoring-files | |
############################################################################## | |
# Project specific files # | |
########################## | |
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
# Default wamp vhost | |
#<VirtualHost *:80> | |
# ServerAdmin webmaster@dummy-host2.example.com | |
# DocumentRoot "c:/Apache2/docs/dummy-host2.example.com" | |
# ServerName dummy-host2.example.com | |
# ErrorLog "logs/dummy-host2.example.com-error.log" | |
# CustomLog "logs/dummy-host2.example.com-access.log" common | |
#</VirtualHost> | |
<VirtualHost *:80> |
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
# ============================================================================== | |
# REQUIRED 3RD PARTY COMPASS EXTENSIONS | |
# ============================================================================== | |
# require '' | |
# ============================================================================== | |
# COMPASS PROJECT CONFIGURATION | |
# ============================================================================== | |
# Can be `:stand_alone` or `:rails`. Defaults to `:stand_alone`. |
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
(function(){ | |
if (typeof boilerplate_bookmarklet == 'undefined') { | |
var stylesheet_url = 'http://example.com/bookmarklet.css'; | |
var script_url = 'http://example.com/bookmarklet.js'; | |
var head = document.getElementsByTagName('head')[0] || document.documentElement; | |
var stylesheet = document.createElement('link'); | |
stylesheet.setAttribute('rel', 'stylesheet'); | |
stylesheet.setAttribute('type', 'text/css'); |
NewerOlder