Skip to content

Instantly share code, notes, and snippets.

View chanibal's full-sized avatar

Krzysztof Bociurko chanibal

View GitHub Profile
@chanibal
chanibal / CSVEscaper.cs
Last active August 22, 2018 00:23
A simple utility for normalizing csv input
#define debuglog
using System;
using System.Diagnostics;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
/// Normalizes CSV lines to fully escaped form - for use in database imports
/// Ex.
/// a,b,c -> 'a','b','c'
THREE.WebGLRenderer 71
three.js:34 THREE.WebGLRenderer: OES_texture_float_linear extension not supported.
three.js:31981 THREE.PlaneGeometry: Consider using THREE.PlaneBufferGeometry for lower memory footprint.
three.js:31981 THREE.PlaneGeometry: Consider using THREE.PlaneBufferGeometry for lower memory footprint.
three.js:31981 THREE.PlaneGeometry: Consider using THREE.PlaneBufferGeometry for lower memory footprint.
three.js:31981 THREE.PlaneGeometry: Consider using THREE.PlaneBufferGeometry for lower memory footprint.
three.js:31981 THREE.PlaneGeometry: Consider using THREE.PlaneBufferGeometry for lower memory footprint.
three.js:34 THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter. ( )
three.js:34 THREE.WebGLShader: gl.getShaderInfoLog() WARNING: 0:3: '
' : extension directive must occur before any non-preprocessor tokens
@chanibal
chanibal / README.md
Last active October 16, 2019 08:52
An utility to add BOM to UTF-8 files

Addbom project moved

Project moved from gist to full GitHub project: chanibal/addbom.

73411/0x1e4c05: open("/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/rt.jar\0", 0x0, 0x0) = 4 0
73564/0x1e4e96: open("/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/rt.jar\0", 0x0, 0x0) = 4 0
73564/0x1e4ece: open("/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/jsse.jar\0", 0x0, 0x0) = 66 0
73564/0x1e4f5e: open("/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/resources.jar\0", 0x0, 0x0) = 76 0
73564/0x1e4ecf: open("/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/ext/dnsns.jar\0", 0x0, 0x0) = 77 0
73564/0x1e4ecf: open("/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/jce.jar\0", 0x0, 0x0) = 81 0
73564/0x1e4f5f: open("/Applications/NetBeans/NetBeans 8.0.2.app/Contents/Resources/NetBeans/platform/modules/org-netbeans-core-windows.jar\0", 0x0, 0x0) = 91 0
73564/0x1e4f5f: open("/Applications/NetBeans/NetBeans 8.0.2.app/Contents/Resources/NetBeans/nb/
@chanibal
chanibal / GyroTest
Last active November 10, 2020 18:38
Unity3d relative gyroscope demo
using UnityEngine;
/// <summary>
/// Gyroscope demo. Attach to a visible object or camera.
/// </summary>
public class GyroTest:MonoBehaviour {
Quaternion origin=Quaternion.identity;