Skip to content

Instantly share code, notes, and snippets.

<?php
#this library contains elements necessary for answer validation
include_once('connectTo.php');
include_once('../cult/mania.php');
include_once("sanitizer.php");
function standardizeAnswer($answer)
{ $answer = str_replace(" ","",$answer);
$answer = strtolower($answer);
$standardAnswer = ereg_replace("[^A-Za-z0-9]","",$answer);
@jeslyvarghese
jeslyvarghese / chatclient.java
Created January 20, 2012 10:11
chat client
import java.io.*;
import java.net.*;
public class ChatClient extends Thread
{
static Socket clientsocket = null;
BufferedReader fromServer = null;
String recieveddata = null;
ChatClient()
{
@jeslyvarghese
jeslyvarghese / AFarCry.md
Created December 6, 2012 09:04
A call for creating better programmers among college students

#About creating better programmers in College in Gods Own Country

With the start up village and CM's new

Keybase proof

I hereby claim:

  • I am jeslyvarghese on github.
  • I am jus (https://keybase.io/jus) on keybase.
  • I have a public key whose fingerprint is 1369 A1D0 FA2E 95A6 305C 254F 4541 EBB7 E179 20D4

To claim this, I am signing this object:

@jeslyvarghese
jeslyvarghese / InterVer.md
Last active August 29, 2015 14:28 — forked from laughinghan/InterVer.md
Interface Versioning - Never break backcompat, keep the API nimble

Interface Versioning (InterVer)

Never break backcompat, keep the API nimble

An extension of SemVer with a stricter (yet more realistic) backcompat guarantee, that provides more flexibility to change the API, for libraries that are packaged and downloaded (not services accessed remotely over the Internet (see Note 4)).

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

Graphics
Introduction to VR Perfomance - https://docs.google.com/presentation/d/1yJSQy4QtcQxcMjr9Wj6kjMd2R1BLNA1mUebDtnaXDL8/edit#slide=id.p
Running Tech Workshops - http://stephaniehurlburt.com/blog/2016/11/1/guide-to-running-technology-workshops
Casual Introoduction To Graphics Programming - http://stephaniehurlburt.com/blog/2016/10/28/casual-introduction-to-low-level-graphics-programming
Introduction To C++ Graphics - https://docs.google.com/presentation/d/1d0StEQMEdz4JUEHXfTPbwKIGYex2p5Mko1Rj66e5M80/edit#slide=id.p
Graphics In Plane Language - https://renderdoc.org/blog/Graphics-in-Plain-Language/
A Trip Through Graphics Pipeline - https://fgiesen.wordpress.com/2011/07/09/a-trip-through-the-graphics-pipeline-2011-index/
http://kesen.realtimerendering.com
Cinder - https://libcinder.org/docs/guides/opengl/index.html
//
// MyMetalWaterfall.swift
// version 0.1.105 (updated for Swift 5)
//
// Demonstrates using a MetalKit compute shader to render a live waterfall RGB bitmap
// into a UIView
//
// This is a single file iOS app
//
// It includes AppDelegate for a minimal demonstration app
let coordinates = CLLocationCoordinate2D(latitude: 37.3319, longitude: -122.0307812)
let snapShotOptions = MKMapSnapshotter.Options.init()
snapShotOptions.size = CGSize(width: 100, height: 100)
snapShotOptions.mapType = .satelliteFlyover
let span = MKCoordinateSpan(latitudeDelta: 0.05, longitudeDelta: 0.05)
snapShotOptions.region = MKCoordinateRegion(center: coordinates, span: span)
let snapShotter = MKMapSnapshotter(options: snapShotOptions)
snapShotter.start(with: .main) { (snapshot, error) in
self.mapImage = snapshot?.image
}