Skip to content

Instantly share code, notes, and snippets.

View marvinosswald's full-sized avatar

Marvin Oßwald marvinosswald

View GitHub Profile
@marvinosswald
marvinosswald / gist:0e981e918aeee4403e9a0790c6f32cdd
Created May 14, 2024 14:03
ogre 1.9 fix on newer macos builds
diff --git a/RenderSystems/GL/src/OSX/OgreOSXWindow.cpp b/RenderSystems/GL/src/OSX/OgreOSXWindow.cpp
index 44231ab5a..9412b01d7 100644
--- a/RenderSystems/GL/src/OSX/OgreOSXWindow.cpp
+++ b/RenderSystems/GL/src/OSX/OgreOSXWindow.cpp
@@ -323,7 +323,7 @@ namespace Ogre
cgErr = CGLSetParameter(mCGLContextObj, kCGLCPSwapInterval, &swapInterval);
#else
GLint swapInterval = 1;
- cgErr = CGLSetParameter(mCGLContextObj, kCGLCPSwapInterval, &swapInterval);
+ cgErr = (CGError)CGLSetParameter(mCGLContextObj, kCGLCPSwapInterval, &swapInterval);
@marvinosswald
marvinosswald / uncheck-all.js
Created February 24, 2020 16:27
Uncheck all board @jira Trello import
document.querySelectorAll('input[type=checkbox]').forEach((btn) => btn.click());
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@marvinosswald
marvinosswald / httpTest.cs
Created December 6, 2018 13:14
C# HttpClient example
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace httpclientTest
{
public class Program
{
static HttpClient client = new HttpClient();
@marvinosswald
marvinosswald / Slicer Config
Created October 8, 2018 09:32
Slicer Config for CaliCat
# generated by Slic3r Prusa Edition 1.41.0+ on 2018-10-08 at 10:08:19
[print:0.05mm ULTRADETAIL]
avoid_crossing_perimeters = 0
bottom_solid_layers = 10
bridge_acceleration = 300
bridge_angle = 0
bridge_flow_ratio = 0.7
bridge_speed = 20
brim_width = 0
<catalog_category_default>
<reference name='left'>
<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
<action method="unsetChild"><child>category_filter</child></action>
</block>
</reference>
</catalog_category_default>
<catalog_category_layered>
<label>Catalog Category (Anchor)</label>
<reference name='left'>
<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
<action method="unsetChild"><child>category_filter</child></action>
</block>
</reference>
</catalog_category_layered>
/*Json only for representation*/
"catalog/category":{
"Id" : 1890,
"StoreId": 0,
"Path" : 0,
"Name": "TestKategorie",
"AvailableSortBy": "price",
"DefaultSortBy": "price",
"IsAnchor": "price",
<?php
return array(
'base_dir' => '.',
'archive_files' => 'build.tar',
'extension_name' => 'H2ODev_MagentoVLB',
'extension_version' => '0.0.1',
'skip_version_compare' => false,
'auto_detect_version' => false,
'path_output' => getenv('CIRCLE_ARTIFACTS'),
'stability' => 'beta',
@marvinosswald
marvinosswald / Shop.php
Created August 21, 2015 08:03
Many to many attach doesn't work...
<?php
// The model php file /app/Models/Shop.php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Shop extends Model
{
public function services()
{