Skip to content

Instantly share code, notes, and snippets.

View smakhtin's full-sized avatar

Vadim Smakhtin smakhtin

View GitHub Profile
@smakhtin
smakhtin / three.js.shader.html
Created May 31, 2020 14:35 — forked from kylemcdonald/three.js.shader.html
Minimal three.js shader example.
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin: 0px;
overflow: hidden;
}
@smakhtin
smakhtin / geojson.R
Last active August 29, 2015 14:24 — forked from josecarlosgonz/geojson.R
#Write geojson
#====
#Load libraries
library(rgdal)
#dataMap is a dataframe with coordinates on cols 11 (LATITUDE) and 12 (LONGITUDE)
#Transfor coordinates to numeric
dataMap$LATITUDE <- as.numeric(dataMap$LATITUDE)
dataMap$LONGITUDE <- as.numeric(dataMap$LONGITUDE)
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0"/>
<title>Leaflet vector tile map of rivers - master (v0.8-dev)</title>
<link rel="stylesheet" href="http://nrenner.github.io/leaflet-tilelayer-vector/bower_components/leaflet/leaflet.css" />
<script src="http://nrenner.github.io/leaflet-tilelayer-vector/bower_components/leaflet/leaflet.js"></script>
<script src="http://www.somebits.com/rivers/lib/leaflet-hash.js"></script>
@smakhtin
smakhtin / sequence.lua
Created June 5, 2012 13:35 — forked from notintricate/sequence.lua
sequence playback
-- access to the scene objects
local scene = getCurrentScene()
-- define keyboard input
local inputManager = getInputManager()
local keyboard = Keyboard(inputManager:getDevice(TIINPUT_KEYBOARDDEVICE))
-- dynamically create the texture objects for image sequence
local Textures = {}
material tv/frame
{
technique
{
pass
{
ambient 0.215686 0.215686 0.215686
diffuse 0.215686 0.215686 0.215686 1
specular 0.172549 0.172549 0.172549 70
emissive 0 0 0