Skip to content

Instantly share code, notes, and snippets.

:shipit:

Oliver onbjerg

:shipit:
View GitHub Profile
@onbjerg
onbjerg / gist:e72c06b46ff67303de6a6d3b5ab9c1f7
Created May 9, 2019
Amethyst Rendy with Metal backend, running in release for about 30 seconds
View gist:e72c06b46ff67303de6a6d3b5ab9c1f7
Create spheres
Create lights
[ERROR][rendy_memory::heaps] All suitable heaps are exhausted. Heaps {
types: [
MemoryType {
heap_index: 0,
properties: DEVICE_LOCAL,
dedicated: DedicatedAllocator {
memory_type: MemoryTypeId(
0
@onbjerg
onbjerg / stderr
Created May 9, 2019
Amethyst Rendy error (with Metal backend)
View stderr
Create spheres
Create lights
[ERROR][amethyst_assets::storage] "PREFAB": Asset "large/NormalTangentMirrorTest.glb" (handle id: Handle { id: 3 }) could not be loaded: Failed to load asset with name "large/NormalTangentMirrorTest.glb"
[ERROR][amethyst_assets::progress] Error loading handle 3, PREFAB, with name large/NormalTangentMirrorTest.glb: Failed to load asset with name "large/NormalTangentMirrorTest.glb"
caused by: Failed to load asset with name "large/NormalTangentMirrorTest.glb"
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Deserialize(Error("expected value", line: 1, column: 1)) } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"large/NormalTangentMirrorTest.glb\"\'") } }), backtrace: None, error: Format("GLTFScene") } }), backtrace: None, error: Asset("large/NormalTangentMir
View gist:ba6461528aa9d8dd6e2a1ad27111aca2
__ _______ _______ _______ _..._
'']["" """"]["" """"]["" """"][LI LI]
OO''OO---OO''OO---OO''OO---OO`'OO-OO'^#^#^#^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
View gist:ab28094cf64adc8307a7aaf7e91d92a8
(`-()_.-=-.
/66 , , \
=(o_/=//_( /======`
jgs ~"` ~"~~`
View gist:8a83de6a5a6c69a815ba1b622cb1afa5
____.-==-, _______ _______ _____
{"""""LILI|[" " "'"]['""'"""][''""'
^#^#^#^#^/_OO====OO`'OO---OO''OO---OO''OO---
^^^jgs^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
View keybase.md

Keybase proof

I hereby claim:

  • I am onbjerg on github.
  • I am onbjerg (https://keybase.io/onbjerg) on keybase.
  • I have a public key whose fingerprint is 3548 B2DE 48EB ABB9 303F 69CE 3B18 2D3A D953 AB4B

To claim this, I am signing this object:

View factorial.clj
(defn factorial [n]
(if (= n 1)
n
(* n (factorial (dec n))))
(print (factorial 7))
View kata.php
<?php
$water = 'H2O';
parseMolecule($water); // => ['H' => 2, 'O' => 1];
$magnesiumHydroxide = 'Mg(OH)2';
parseMolecule($magnesiumHydroxide); // => ['Mg' => 1, 'O' => 2, 'H' => 2];
$fremySalt = 'K4[ON(SO3)2]2';
parseMolecule($fremySalt); // => ['K' => 4, 'O' => 14, 'N' => 2, 'S' => 4];
View Gulpfile.js
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
You can’t perform that action at this time.