Skip to content

Instantly share code, notes, and snippets.

View seflless's full-sized avatar

Francois Laberge seflless

View GitHub Profile
@seflless
seflless / test
Created August 28, 2008 06:18
My first test function
function test()
{
}
function test2()
{
}
@seflless
seflless / normals2rgb.js
Created November 7, 2010 00:00
Code for converting a Normal to a color for Normal Mapping Purposes
// Encodes a float with range [-1.0,1.0] into a color channel with range [0,255]
function encodeFloat(f){
if(f<0.0){
f = -f;
return Math.min(Math.floor((1.0-f)*127.0),127);
}
else{
return 128+Math.min(Math.floor(f*128.0),128);
}
}
@seflless
seflless / jumpout no workee
Created August 28, 2011 21:21
Error Deploying Jumpout App to no.de
vcr:overengineers francois$ git push jumpout.no.de master
Counting objects: 233, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (219/219), done.
Writing objects: 100% (233/233), 132.48 KiB, done.
Total 233 (delta 88), reused 0 (delta 0)
remote: Deploying node-service.
remote: revision: 5f9edd09a0d940deb73d34bad03e4d792ca3e61c
remote: timestamp: 2011-08-28T21-16-42.536359477
remote: Installing node module deps (from package.json).
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie8 bc-iframe"> <![endif]-->
<!--[if !IE 8]><!--> <html class="bc-iframe"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>您好大卫</title>
<meta name="viewport" content="user-scalable=0, width=device-width, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style>
</style>
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie8 bc-iframe"> <![endif]-->
<!--[if !IE 8]><!--> <html class="bc-iframe"> <!--<![endif]-->
<head>
<title>您好大卫</title>
<meta name="viewport" content="user-scalable=0, width=device-width, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style>
</style>
</head>
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie8 bc-iframe"> <![endif]-->
<!--[if !IE 8]><!--> <html class="bc-iframe"> <!--<![endif]-->
<head>
<meta charset="ISO-8859-1">
<title>您好大卫</title>
<meta name="viewport" content="user-scalable=0, width=device-width, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style>
</style>
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie8 bc-iframe"> <![endif]-->
<!--[if !IE 8]><!--> <html class="bc-iframe"> <!--<![endif]-->
<head>
<meta charset="ISO-8859-1">
<title>您好大卫</title>
<meta name="viewport" content="user-scalable=0, width=device-width, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style>
</style>
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@seflless
seflless / Instructions.md
Last active August 29, 2015 14:15
Red5Pro Beta Issue

Steps to reproduce

  1. Install the Android app
  2. Open the app on your phone
  3. Select Second Screen
  4. Settings
  • Server: 162.242.210.105
  • Port: 8088
  • App Name: secondscreen
  1. Open the drawing app webpage
  2. Select Multi Draw from host list.
@seflless
seflless / atom-doc.json
Created May 15, 2015 15:35
HAR file for Atom.io Documentation Page Load Time Issues
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2015-05-15T15:31:28.141Z",