Skip to content

Instantly share code, notes, and snippets.

View hagbarddenstore's full-sized avatar

Kim Johansson hagbarddenstore

View GitHub Profile
@hagbarddenstore
hagbarddenstore / RoomObject.cs
Last active February 22, 2016 00:48 — forked from jrmoserbaltimore/RoomObject.cs
Horrendous code
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using BlackCore.GameWorld;
namespace BlackCore.GameWorld
{
public interface IRoom
{
IRoom SelectMode(Dictionary<string, int> mode, int state);
---
- hosts: all
sudo: true
vars_files:
- vars.yml
tasks:
- uri:
url: "https://api.serverpilot.io/v1/servers"
user: "{{ spclientid }}"
password: "{{ spapikey }}"
public static void insertWords(List<string> words)
{
var context = new OperationDataContext();
var existingWords = context.GetTable<english_dictionary>().Where(word => words.Contains(word)).ToList();
var wordsToInsert = words.Except(existingWords).ToList();
foreach (var word in wordsToInsert)
{
namespace ProjectCompany
{
public class Employee
{
private string firstName;
private string secondName;
private Company company;
private Employee supervisor;
public Employee (string firstName, string secondName, Company company, Employee supervisor)