Skip to content

Instantly share code, notes, and snippets.

@Jimshii
Jimshii / gist:3078856
Created July 9, 2012 20:58
PhonesController.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcApplication1.Models;
using MvcApplication1.Services;
@Jimshii
Jimshii / gist:3061997
Created July 6, 2012 18:48
Lion Labs css
body {
background-color: #CCCC99;
font-size: .85em;
font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
margin: 0;
padding: 0;
color: #696969;
}
a:link {
@Jimshii
Jimshii / gist:3020107
Created June 29, 2012 19:27
JMain class
package package_full;
import java.awt.*;
import javax.swing.JFrame;
public class JMain extends JFrame {
public static void main(String[] args) {
DisplayMode dm = new DisplayMode(800, 600, 16, DisplayMode.REFRESH_RATE_UNKNOWN);
JMain m = new JMain();
@Jimshii
Jimshii / gist:3020101
Created June 29, 2012 19:26
Screen class
package package_full;
import java.awt.*;
import javax.swing.JFrame;
public class Screen {
private GraphicsDevice vc;
public Screen(){
public class load {
static int savedA = 0;
public static void loadGame() {
try{
// Open file to read from, named GameData.sav.
FileInputStream saveFile = new FileInputStream("GameData.sav");
// Create an ObjectInputStream to get objects from save file.
ObjectInputStream save = new ObjectInputStream(saveFile);
public class save {
static int savedQ = 0;
public static void gameSave() {
try{ // Catch errors in I/O if necessary.
// Open a file to write to, named GameData.sav.
FileOutputStream saveFile = new FileOutputStream("GameData.sav");
// Create an ObjectOutputStream to put objects into save file.
JMenuItem Load = new JMenuItem("Load Game");
Load.setToolTipText("Load a previously saved game");
Load.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
load.loadGame();
if (Character.secondBar == null) {
statusbar.setText("No game found");
}
else {
statusbar.setText("Loading game...");
@Jimshii
Jimshii / gist:2789078
Created May 25, 2012 16:33
fuck this
public static void CharacterCreate(int ccRace, int ccGender, int ccRole, int qq1, int qq2, int qq3) {
if (ccRace == 0 && ccGender == 0 && ccRole == 0) {
health = 150;
secondBar = "Stamina";
stamina = 100;
strength = 30;
intelligence = 15;
dexterity = 15;
charisma = 0;
@Jimshii
Jimshii / gist:2785363
Created May 25, 2012 02:00
shopkeeper NPC outline 4 dat kyle feller
package skeleton;
public class ShopNPC {
String response1 = "gtfo my face nigga";
// Do like a dozen of these response.
//String responsetitle = "what he actually says";
//Name the response whatever you want so that they fit the actual response.
//Make sure to include things like "Would you like to view my items?" or "You don't have enough money for that!"
//Easter eggs gogogogogo
public class Example extends JFrame {
private static final long serialVersionUID = 1L;
protected Component main;
public Example() {
initUI();
}