Skip to content

Instantly share code, notes, and snippets.

View lysannschlegel's full-sized avatar
🦄

Lysann Tranvouez lysannschlegel

🦄
View GitHub Profile
@lysannschlegel
lysannschlegel / pre-commit-xaml-styler.sh
Last active October 7, 2023 22:11
git pre-commit hook: XamlStyler + git-format-staged
#!/usr/bin/env bash
# Git pre-commit hook that uses git-format-staged and XamlStyler to format xaml files on commit.
#
# See also:
# https://github.com/hallettj/git-format-staged
# https://github.com/Xavalon/XamlStyler
#
# This assumes that XamlStyler was installed as a local tool in the repository.
# See https://github.com/Xavalon/XamlStyler/wiki/Script-Integration for setup instructions.
@lysannschlegel
lysannschlegel / Cocos2D-SpriteBuilder.3.4.3-rc.0.podspec
Last active December 12, 2017 11:25
Podspec for Cocos2d-SpriteBuilder version 3.4.3-rc0
Pod::Spec.new do |s|
s.name = 'Cocos2D-SpriteBuilder'
s.version = '3.4.3-rc.0'
s.summary = 'Cocos2D-SpriteBuilder is a framework for building 2D games, demos, and other graphical/interactive applications for iOS, Mac and Android.'
s.homepage = 'http://cocos2d.spritebuilder.com/'
s.license = { :type => 'MIT', :file => 'LICENSE_cocos2d.txt' }
s.authors = 'Apportable Inc.'
s.platform = :ios, '6.0'
@lysannschlegel
lysannschlegel / gist:6121347
Created July 31, 2013 11:52
CUDA 5.5 RC and gcc 4.7 if including <limits>
$ nvcc example_limits.cu -ccbin=g++-4.7
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/../../../../include/c++/4.7.2/limits(1405): error: identifier "__int128" is undefined
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/../../../../include/c++/4.7.2/limits(1409): error: identifier "__int128" is undefined
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/../../../../include/c++/4.7.2/limits(1412): error: identifier "__int128" is undefined
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/../../../../include/c++/4.7.2/limits(1421): error: identifier "__int128" is undefined
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/../../../../include/c++/4.7.2/limits(1421): error: function call is not allowed in a constant expression
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/../../../../include/c++/4.7.2/limits(1423): error: function call is not allowed in a constant expressio