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
-- Table based object with method | |
function newPerson(name) | |
local M = { | |
name = name, | |
age = 0, | |
} | |
M.greet = function (self) | |
print ("This is " .. self.name .. ", I am " .. self.age) |
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
local composer = require( "composer" ) | |
local scene = composer.newScene() | |
-- include Corona's "physics" library | |
local physics = require "physics" | |
function scene:create( event ) | |
-- Called when the scene's view does not exist. | |
-- | |
-- INSERT code here to initialize the scene |
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 lang=""> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" href=""> | |
<style type="text/css"> | |
* { |
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
// Solution to ultimate Swift Nija challenge | |
// http://www.raywenderlich.com/77845/swift-ninja-part-2 | |
enum Suit { | |
case Clubs, Diamonds, Hearts, Spades | |
} | |
enum Rank { | |
case Jack, Queen, King, Ace | |
case Num(Int) |
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
* { | |
font-family: arial; | |
} | |
.diw { | |
border-radius: 10px; | |
width: 200px; | |
margin: auto; | |
} |
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
Process: Ingredients [63019] | |
Path: /Applications/Ingredients.app/Contents/MacOS/Ingredients | |
Identifier: net.fileability.ingredients | |
Version: 1.0 (1.0) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [282] | |
User ID: 501 | |
Date/Time: 2012-09-07 00:05:09.957 +0200 | |
OS Version: Mac OS X 10.8.1 (12B19) |
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
//: Playground - noun: a place where people can play | |
// 1. Create new iOS playground | |
// 2. Paste this code | |
// 3. Enable timeline slider (on Utilities panel, alt+cmd+0 to show) | |
// 4. After letting the animation play, move the slider :) | |
import UIKit | |
import XCPlayground |
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"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>my-project</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<dependencies> | |
<!-- none yet --> |
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
require 'sinatra' | |
get '/' do | |
@name = ENV['USER'] | |
erb :main | |
end |
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
-- Disable pixel smoothing | |
display.setDefault( "magTextureFilter", "nearest" ) | |
-- Physics debugging: place in scene file in global scope | |
physics.setDrawMode( "hybrid" ) |
OlderNewer