Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ricardojmendez on github.
  • I am ricardojmendez (https://keybase.io/ricardojmendez) on keybase.
  • I have a public key ASBAuAKjzvmddZxt7wLVEBPTC1DXP4frwB6vHU-11uAXYAo

To claim this, I am signing this object:

@ricardojmendez
ricardojmendez / .gitlab-ci.yml
Created October 10, 2016 06:12
Sample yml configuration file for testing a Clojure web application on Gitlab CI
image: clojure:lein-2.7.0
services:
- postgres:latest
variables:
DATABASE_URL: "postgresql://postgres/dbname?user=uname&password=pwd"
before_script:
- apt-get update -y
- lein deps
@ricardojmendez
ricardojmendez / 00_notes.md
Created August 23, 2016 21:09 — forked from Deraen/00_notes.md
Compojure-api and Buddy
  • (:identity req) is auth backend independent way to access user data
  • login and logout implementation depends on auth backend
  • :current-user doesn't imply that authentication is required, route should also have :auth-rules if authentication is required
@ricardojmendez
ricardojmendez / circles.cljs
Created January 13, 2015 07:19
Quil/ClojureScript sketch showing the intersection of wandering circles
(ns quil-js.circles
(:require [quil.core :as q :include-macros true]
[quil.middleware :as m]))
(deftype Circle [x y radius x-move y-move line-color fill-color alpha])
(defn draw-circle [circle]
; (.log js/console (str "Drawing " x "," y " with " overlap))
@ricardojmendez
ricardojmendez / circles.coffee
Last active December 17, 2015 15:35
P5.js sketch showing the intersection of wandering circles
class Circle
constructor: (@x, @y, @radius, @x_move, @y_move) ->
class Overlap
constructor: (@x = 0, @y = 0, @amount = 0) ->
mysketch = (sketch) ->
circles = []
using System.Collections;
using UnityEngine;
using UnitySteer;
namespace UnitySteer.Base
{
/// <summary>
/// Steers a vehicle to follow a path
/// </summary>
#define TRACE_PATH
using System;
using UnityEngine;
namespace UnitySteer.Base
{
/// <summary>
/// Steers a vehicle to follow a path
/// </summary>
//Copyright (c) 2014 Tilman Schmidt (@KeyMaster_)
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//The above copyright notice and this permission notice shall be included in
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public enum EdgeType { Clear, Road, Bounce, Stop, Blocker, Killer, Burning };
public interface IAura
{
@ricardojmendez
ricardojmendez / SteerForAngryAntPath.cs
Created February 24, 2011 08:09
Draft seeker using AngryAnt's Path 2
using System.Collections.Generic;
using UnityEngine;
using UnitySteer;
/// <summary>
/// Steers a vehicle to follow a path
/// </summary>
/// <remarks>
/// Based on SteerToFollowPath.
/// </remarks>