Skip to content

Instantly share code, notes, and snippets.

View Jonty800's full-sized avatar

Jon Baker Jonty800

  • United Kingdom
View GitHub Profile
/*
Copyright 2008-2011 Gephi
Authors : Patick J. McSweeney <pjmcswee@syr.edu>, Sebastien Heymann <seb@gephi.org>
Website : http://www.gephi.org
This file is part of Gephi.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 2011 Gephi Consortium. All rights reserved.
package com.ukc.deeplearning;
/**
* Created by Jon Baker on 20/08/2017. <Part of Socialsense> Copyright University of Kent
*/
import org.datavec.api.records.reader.RecordReader;
import org.datavec.api.records.reader.impl.csv.CSVRecordReader;
import org.datavec.api.split.FileSplit;
import org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator;
private String[] ignoredWords = new String[] {
"eda"
};
/**
* Compares two strings.
* Each string is stripped of all invalid chars (Allowing letters and numbers only)
*
* @param newsResult The news result string
* @param currentArticle The article string
* @return A "Worth" value, based on the matches found
<style>
#bottombox,
#topbox {
background-color: #CCCCCC;
width: 500px;
height: 100px;
margin: auto;
margin-bottom: 10px;
box-shadow: 10px 10px 5px #888888;
}
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="member.xsl" ?>
<Pupils>
<Pupil SpecialNeed="True">
<Name> Anybody </Name>
<Address>
AnyStreet, Anywhere
</Address>
</Pupil>
<?xml version="1.0"?>
<invoice xmlns="file:///exam/first-class-honours.xsd">
<header>
<name>blah</name>
<address>blah</address>
</header>
<body>
<description>blah</description>
<total>5</total>
</body>
@Jonty800
Jonty800 / gist:10057453
Created April 7, 2014 21:13
hotkey prototype lwjgl
if (this.currentScreen == null) {
for (int j = 0; j < this.hotKeys.size(); j++) {
// check through all stored hotkeys
HotKeyData hkData = this.hotKeys.get(j);
String label = hkData.label;
String action = hkData.action;
int keyCode = hkData.keyCode;
byte keyMods = hkData.keyMods;
@Jonty800
Jonty800 / java
Last active August 29, 2015 13:57
Weight management
/** NutritionCentral
* Copyright (C) <2013, 2014> Jonathan Baker, Max Tayler - University of Kent
* All rights reserved
*/
package com.ukc.nutritioncentral.adapter;
import java.util.List;
import android.content.Context;
import android.widget.ArrayAdapter;
@Jonty800
Jonty800 / gist:3768171
Last active October 10, 2015 23:28
4 scootiepie xxxxxxxxxx
#region Emotes
public struct EmoteData //Contains all data needed for the emotes. Emote is the trigger word,
//example (bullet). ID is the byte value of the char
{
public string Emote;
public byte ID;
}
//this list will be loaded with the list of emotes and their replacement values
static List<EmoteData> EmoteTriggers = null;