Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Simple Blog</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<% for (i = posts.length-1; i>=0;i--){ %>
<div class='post'>
<a href='/posts/<%= i %>'><h2 style='display:inline'><%= posts[i].title %></h2></a>
<form method="POST" action='/posts/<%= i %>' style='display:inline'>
<html>
<head>
<title>Simple Blog</title>
<link href="http://cdn.jsdelivr.net/bootstrap/2.3.0/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css">
<style>
body {
margin: 0 auto;
width: 600px;
}
@tomelm
tomelm / map.html
Created March 3, 2013 21:26
Google Maps sample coordinates mapper
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
</style>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=API_KEY_HERE&sensor=false"></script>
Agents,
On Thursday (March 7th), we will be hosting a special event featuring Ronald Arkin. The meeting will be in Klaus 2447 at 6:30 and there will be food and drink. The talk will be about the ethics of creating intelligent systems and should be a good talk for anyone looking to one day work in the industry.
Dr. Arkin has a lot of exposure with some of the technologies we're looking to implement for the car so this will be a very interesting meeting. He is director of the Mobile Robot Laboratory and part of the School of Interactive Computing at Tech. Dr. Arkin was a professor at the Centre for Autonomous Systems at the Royal Institute of Technology in Stockholm and was a member of the Robotics and Artificial Intelligence Group in France.
His research interests include behavior-based reactive control and action-oriented perception for mobile robots and unmanned aerial vehicles, hybrid deliberative/reactive software architectures, robot survivability, multiagent robotic systems, biorobotics, human-robot i
public class RandomizedOptimization {
public static void main(String args[]) {
NNWithRandomHillClimbing rhc = new NNWithRandomHillClimbing();
NNWithSimulatedAnnealing sa = new NNWithSimulatedAnnealing();
NNWithGeneticAlgorithm ga = new NNWithGeneticAlgorithm();
Long start;
// Run neural network with different random hill climbing iterations
try {
text_razor|master⚡ ⇒ rspec spec/text_razor.rb
FF
Failures:
1) TextRazor sets and creates entities
Failure/Error: @textrazor = TextRazor.new(api_key: 'abc123', text: 'This is a test sentence', extractors: 'entities')
ArgumentError:
wrong number of arguments(1 for 0)
# ./spec/text_razor.rb:5:in `initialize'
class Appointment < ActiveRecord::Base
has_many :steps
has_many :roles, through: :steps
has_many :events, through: :roles
end
@tomelm
tomelm / 1_plans.md
Last active December 20, 2015 16:29
bigdata student org

Topics to cover

  • Full text search
  • Map Reduce
  • Graph searching and traversal
  • Machine Learning/statistics
  • NLP? (for text)

Possible analysis

  • word counts
  • basic statistics
1) Minimum App React.js should load on the main page and render 'Hello World'
Failure/Error: visit root_path
Capybara::Poltergeist::JavascriptError:
One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
TypeError: 'undefined' is not a function (evaluating 'RegExp.prototype.test.bind(
/^(data|aria)-[a-z_][a-z\d_.\-]*$/
)')
TypeError: 'undefined' is not a function (evaluating 'RegExp.prototype.test.bind(
@tomelm
tomelm / gist:6542467
Created September 12, 2013 19:14
getting android command line generating
Notes to get Android generating from command line:
Download and install the appropriate SDK tools for your OS from here: http://developer.android.com/sdk/index.html. Make sure to download what's under SDK tools only.
After this is downloaded:
1. unzip it into a place where it never moves
2. update your path to include it
3. cd into that directory and run ``android update sdk -u --filter platform-tools,android-18,extra-android-support``
4.