Skip to content

Instantly share code, notes, and snippets.

View pjanik's full-sized avatar

Piotr Janik pjanik

  • Kraków, Poland
View GitHub Profile
@pjanik
pjanik / gist:3376799
Created August 17, 2012 07:38
chrome://gpu/ after GPU crash, Chrome 22.0.1229.6 dev
Graphics Feature Status
Canvas: Hardware accelerated
Compositing: Hardware accelerated
3D CSS: Hardware accelerated
CSS Animation: Accelerated
WebGL: Hardware accelerated
WebGL multisampling: Hardware accelerated
Flash 3D: Hardware accelerated
Flash Stage3D: Hardware accelerated
Texture Sharing: Hardware accelerated
@pjanik
pjanik / gist:3857581
Created October 9, 2012 09:17 — forked from leeoniya/gist:1379478
testing markdown

Adding new module which should be built as a separate library

This involves a few additional steps comparing with adding a single source file.

  1. Create a new directory in src/lab.
  2. Put all related sources there or in src/lab/common (if you think that they are generic enough and may be reused by other modules).
  3. Define module-name.build.js and public-api.js files in your new directory (described below).
  4. Add build routines to the Makefile:
@pjanik
pjanik / simple-ke-model$0.mml
Created October 12, 2012 12:38
simple-ke-model$0.mml
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.7.0_07" class="java.beans.XMLDecoder">
<object class="org.concord.mw2d.models.Element" id="Element0">
<void property="mass">
<double>0.16666666666666666</double>
</void>
<void property="sigma">
<double>7.0</double>
</void>
</object>
updateShortRangeForces = function () {
// Fast path if Lennard Jones interaction is disabled.
if (!useLennardJonesInteraction) return;
var rows = cellList.getRowsNum(),
cols = cellList.getColsNum(),
i, j, temp, cellIdx, cell1, cell2,
a, b, atom1Idx, cell1Len, cell2Len,
n, nLen, cellNeighbors;
{
"title": "onPropertyChange Demo",
"publicationStatus": "public",
"subtitle": "",
"about": "",
"models": [
{
"id": "simple-ke-shading$0",
"url": "/imports/legacy-mw-content/converted/conversion-and-physics-examples/simple-ke-shading$0.json",
"viewOptions": {
WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.8.0
/home/piotr/Concord/lab/script/aws-lab-server.rb:50:in `rescue in initialize': (RuntimeError)
*** Missing required arguments: aws_access_key_id, aws_secret_access_key
*** Create the file ~/.fog with your Amazon Web Services API Access Keys
file: ~/.fog
:default:
:aws_access_key_id: YOUR_AWS_ACCESS_KEY
:aws_secret_access_key: YOUR_AWS_SECRET_ACCESS_KEY
Ubuntu 12.10
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
>> Using rack adapter
/home/piotr/.rvm/gems/ruby-1.9.3-p385@lab-server/gems/debugger-linecache-1.1.2/lib/tracelines19.rb:3:in `require': cannot load such file -- trace_nums (LoadError)
from /home/piotr/.rvm/gems/ruby-1.9.3-p385@lab-server/gems/debugger-linecache-1.1.2/lib/tracelines19.rb:3:in `<top (required)>'
from /home/piotr/.rvm/gems/ruby-1.9.3-p385@lab-server/gems/debugger-linecache-1.1.2/lib/linecache19.rb:65:in `require'
from /home/piotr/.rvm/gems/ruby-1.9.3-p385@lab-server/gems/debugger-linecache-1.1.2/lib/linecache19.rb:65:in `<top (required)>'
from /home/piotr/.rvm/gems/ruby-1.9.3-p385@lab-server/gems/debugger-1.3.1/lib/ruby-debug-base.rb:2:in `require'
from /home/piotr/.rvm/gems/ruby-1.9.3-p385@lab-server/gems/debugger-1.3.1/lib/ruby-debug-base.rb:2:in `<top (required)>'
from /home/piotr/.rvm/gems/ruby-1.9.3-p385@lab-server/gems/debugger-1.3.1/lib/ruby-debug.rb:5:in `require'
from /home/piotr/.rvm/gems/ruby-1.9.3-p385@lab-server/gems/debugger-1.3.1/lib/ruby-debug.rb:5:in `<top (required)>'
@pjanik
pjanik / index.html
Last active December 14, 2015 23:59
<!DOCTYPE html>
<meta charset="utf-8">
<style>
canvas {
border: 1px dashed gray;
}
p {
margin: 0;
}
</style>
@pjanik
pjanik / README.md
Last active December 14, 2015 23:59
Canvas (KineticJS) + Shape Caching