Skip to content

Instantly share code, notes, and snippets.

public class InstanceCalculator
{
public dd(int num1, int num2)
{
return num1 + num2;
}
public ubtract(int num1, int num2)
{
return num1 - num2;
package com.moomoohk.MarketMaven.Components;
import java.io.Serializable;
import com.moomoohk.MarketMaven.Game;
public class Person extends Agent implements Serializable
{
private static final long serialVersionUID = 1L;
[2014-10-03T14:42:09+0300] <@moomoohk> i think i got it
[2014-10-03T14:42:10+0300] <FleshyPig> yo moomoohk, i played the just cause 2 demo
[2014-10-03T14:42:12+0300] <FleshyPig> it is sick
[2014-10-03T14:42:19+0300] <@moomoohk> figured as much
[2014-10-03T14:42:31+0300] <FleshyPig> totally gonna get it soon
[2014-10-03T14:42:36+0300] <St1nG> fleshypig, just cause 2 is legit
[2014-10-03T14:42:43+0300] <FleshyPig> so is my ass
[2014-10-03T14:42:45+0300] <FleshyPig> ooooohhhhh
[2014-10-03T14:42:46+0300] <St1nG> I prefer it to gta
[2014-10-03T14:43:31+0300] <FleshyPig> cool
void save() {
Store store1 = new Store(dbName, store1Name); // Opening first nonexistent store, all good
store1.open().then((_) {
store1.batch({
// This will run sucessfully and the data will be saved
});
});
Store store2 = new Store(dbName, store2Name);
store2.open().then((_) {
@moomoohk
moomoohk / generate_build.py
Created April 7, 2015 12:55
Cactus (http://cactusformac.com/) plugin that generates an external build folder that doesn't overwrite your git files. Perfect for usage with GitHub pages, just stick your .git in the generated build folder.
import distutils.dir_util
import shutil
import os
def copytree(src, dst):
for item in os.listdir(src):
s, d = os.path.join(src, item), os.path.join(dst, item)
if os.path.isdir(s):
shutil.copytree(s, d, False, None)
else: