Skip to content

Instantly share code, notes, and snippets.

View yeyus's full-sized avatar
🍝

Jesús F. Trujillo yeyus

🍝
View GitHub Profile
@yeyus
yeyus / simavr-install.md
Last active August 29, 2015 14:03
simavr install and dependencies

Dependencies

  • elfutils
  • libelf1
  • libelf-dev
  • freeglut3 (req. by OpenGL sample code)
  • freeglut3-dev (req. by OpenGL sample code)
  • libglib2.0-dev
  • gcc-avr
@yeyus
yeyus / index.html
Created June 28, 2013 07:16
Orientation detection for full-screen parallax
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Orientation Test</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
<script src="orientation.js"></script>
<link rel="stylesheet" href="style.css">
</head>
@yeyus
yeyus / gist:5476308
Created April 28, 2013 08:43
Vagrant curl Bad CPU Type on Core Duo OS X 10.6.8
Vagrant comes with its own curl version at /Application/Vagrant/embedded/bin directory. This curl was compiled against a 64bit machine so you should replace it with a suitable version into your computer...
The stack trace for the error is:
Downloading or copying the box...
/Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/subprocess.rb:84:in `rescue in execute': Bad CPU type in executable - curl (Vagrant::Util::Subprocess::LaunchError)
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/subprocess.rb:77:in `execute'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/subprocess.rb:23:in `execute'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/downloader.rb:122:in `block in download!'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/downloader.rb:121:in `download!'