This file contains hidden or 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 HSVColor = {} | |
local function lerp(a, b, x) | |
if x > 1 then x = 1 end | |
if x < 0 then x = 0 end | |
return a + (b-a) * x | |
end | |
function HSVColor.new(h, s, v) | |
return { |
This file contains hidden or 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 RGBColor = {} | |
local function lerp(a, b, x) | |
if x > 1 then x = 1 end | |
if x < 0 then x = 0 end | |
return a + (b-a) * x | |
end | |
function RGBColor.new(r, g, b) | |
return { |
This file contains hidden or 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
\documentclass[11pt]{article} | |
\usepackage{enumerate} | |
\title{\textbf{Assignment}} | |
\author{David Fu\\Date} | |
\date{} | |
\begin{document} | |
\maketitle | |
\section{} |
This file contains hidden or 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
var footer = data.source || data.tools ? ( | |
<p> | |
{data.source ? () : null} | |
{data.tools ? data.tools.join(', ') : null} | |
</p> | |
) : null; | |
... | |
return ( |
This file contains hidden or 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 com.example.david.myapplication; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
public class MainActivity extends AppCompatActivity { |
This file contains hidden or 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 com.example.david.myapplication; | |
import com.google.gson.Gson; | |
import java.util.List; | |
/** | |
* Created by david on 15-09-19. | |
*/ | |
public class DataWrapper { |
This file contains hidden or 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 com.example.david.myapplication; | |
import android.os.AsyncTask; | |
import android.util.Log; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; | |
import com.google.gson.JsonSyntaxException; |
This file contains hidden or 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
#!/bin/bash | |
#main.lua | |
echo "package.path = '.?/?.lua;.lml/?/?.lua;'..package.path | |
function love.load() | |
end | |
function love.update(dt) | |
end |
NewerOlder