Skip to content

Instantly share code, notes, and snippets.

@AngryLoki
AngryLoki / test.log
Created January 18, 2024 21:43
openimageio-2.5.5.0-r1.ebuild unit_simd test failure
156/168 Testing: unit_simd
156/168 Test: unit_simd
Command: "/var/tmp/portage/media-libs/openimageio-2.5.5.0-r1/work/OpenImageIO-2.5.5.0_build/bin/simd_test"
Directory: /var/tmp/portage/media-libs/openimageio-2.5.5.0-r1/work/OpenImageIO-2.5.5.0_build/src/libutil
"unit_simd" start time: Jan 18 21:38 UTC
Output:
----------------------------------------------------------
OIIO SIMD support is: sse2,sse3,ssse3,sse41,sse42,avx,avx2,avx512f,avx512dq,avx512ifma,avx512cd,avx512bw,avx512vl,fma,f16c
Hardware SIMD support is: sse2,sse3,ssse3,sse41,sse42,avx,avx2,avx512f,avx512dq,avx512ifma,avx512cd,avx512bw,avx512vl,fma,f16c,popcnt,rdrand
@AngryLoki
AngryLoki / carniru.js
Created April 10, 2016 16:41
Polivanov transliteration function for Wikidata
/*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* This notice shall be included in all copies or substantial portions of the Software.
*/
function trans(car) {
car = car.replace(/一/g, "いち ");
car = car.replace(/七/g, "しち ");
from pprint import pprint
import itertools
from math import factorial
def fct(x):
if x > 20:
raise Exception()
return factorial(x)
import logging
from pprint import pprint
import itertools
import re
import requests
url = "https://tools.wmflabs.org/autolist/index.php"
logging.basicConfig(level=logging.INFO)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AngryLoki
AngryLoki / ies2cycles_old.py
Created April 4, 2013 19:39
IES to Cycles addon for official 2.66 release (old nodetrees) http://blenderartists.org/forum/showthread.php?276063
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@AngryLoki
AngryLoki / ies2cycles.py
Last active January 30, 2024 16:47
IES to Cycles addon for new nodetree system! It only works for trunk builds of blender 2.66 and later versions!!! Thread on blenderartists.org: http://blenderartists.org/forum/showthread.php?276063 Old outdated version (no rig) for official 2.66 release (old nodetrees): https://gist.github.com/Lockal/5313485
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@AngryLoki
AngryLoki / dae2obj.py
Created September 28, 2012 15:42
Obj to dae Blender
# simple script to batch convert collada to obj.
# run as:
# blender --background --python dae2obj.py -- input_dir output_dir
import os
import sys
import glob
import bpy
if len(sys.argv) != 7:
@AngryLoki
AngryLoki / app.yaml
Created May 18, 2012 19:45
Hit counter with sharding and memcache
application: "true"
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: true.app