Skip to content

Instantly share code, notes, and snippets.

View tomaadland's full-sized avatar

Tom Henrik Aadland tomaadland

View GitHub Profile
@tomaadland
tomaadland / gist:227216c8db89440bd778dc83f7b25538
Created March 28, 2019 08:05
Get Web Audio to work with ios safari
<script>
$(document).ready(function(){
console.log("Lang: <%= I18n.locale %>");
<% if I18n.locale.to_s == 'en' %>
let url = "https:<%= @sight.sound_guide_en.url %>;"
<% else %>
let url = "https:<%= @sight.sound_guide.url %>;"
<% end %>
let source;
window.AudioContext = window.AudioContext || window.webkitAudioContext;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en">
<head>
<title>Salmon Group Systems</title>
<meta name="author" content="Vibecke Bondø"/>
<meta name="subject" content="Kapittel print" />
<meta name="date" content="2015-06-29 19:20:34 +0200" />
<link href="http://fonts.googleapis.com/css?family=Roboto:500,400,300,100" rel="stylesheet">
<style>
@page {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en">
<head>
+ <title>Salmon Group Systems</title>
+ <meta name="author" content="#{current_user.name}"/>
+ <meta name="subject" content="Kapittel print" />
+ <meta name="date" content="#{Time.now}" />
+ <link href="http://fonts.googleapis.com/css?family=Roboto:500,400,300,100" rel="stylesheet">
<style>
~
~ @page {
2015-03-09 12:37:51.524 weberar[4895:2385893] -> registered mono modules 0x101519100
-> applicationDidFinishLaunching()
-> applicationDidBecomeActive()
Requesting Resolution: 1080x1920
Init: screen size 1080x1920
Initializing Metal device caps
Initialize engine version: 4.6.3f1 (4753d8b6ef2b)
WARNING: Shader Unsupported: 'Marmoset/Mobile/Specular IBL' - Pass 'FORWARD' shader state not supported
WARNING: Shader Unsupported: 'Marmoset/Mobile/Specular IBL' - Pass 'FORWARD' shader state not supported
2015-03-07 19:03:43.093 vufTest[4247:2104992] -> registered mono modules 0x10120b060
-> applicationDidFinishLaunching()
-> applicationDidBecomeActive()
Requesting Resolution: 1080x1920
Renderer: Apple A8 GPU
Vendor: Apple Inc.
Version: OpenGL ES 2.0 Apple A8 GPU - 50.6.11
GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_
2015-03-06 10:34:22.285 weberar[3255:1864267] -> registered mono modules 0x1012f2ba0
-> applicationDidFinishLaunching()
-> applicationDidBecomeActive()
Requesting Resolution: 1080x1920
Renderer: Apple A8 GPU
Vendor: Apple Inc.
Version: OpenGL ES 3.0 Apple A8 GPU - 50.6.11
GL_OES_standard_derivatives GL_KHR_texture_compression_astc_ldr GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_texture_filter_anisotropic GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_rgb_422 GL_APPLE_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_texture_compression_pvrtc
Creating OpenGL ES 3.0 graphics device
@tomaadland
tomaadland / cream-shop
Created May 29, 2014 18:36
nginx config gile
upstream cream_shop {
server 127.0.0.1:8081;
}
passenger_pre_start http://localhost:8081;
passenger_max_pool_size 20;
passenger_pool_idle_time 10;
server {
listen 8081;
root /var/www/apps/cream-shop/current/public;
@tomaadland
tomaadland / vimrc
Created December 2, 2011 13:23
my vimrc file
syntax on
set visualbell
set autoindent
set smartindent
set shiftwidth=2
set expandtab
set sts=2
let mapleader = ","
" two 'leaders'
map \ ,
@tomaadland
tomaadland / gist:995294
Created May 27, 2011 13:54
Franklin Readme
== Franklin making social media sellable
Franklin is a tool to easy generate facebook pages.
== Technical information
=== Background
Tore: Can you fill in a little bit here ?