I hereby claim:
- I am celsodantas on github.
- I am celsodantas (https://keybase.io/celsodantas) on keybase.
- I have a public key ASCwqquTh_hBVKeX_ArPDpwym9UcJQXIgxbFT8u9wM4Vhwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| class Cache | |
| def initialize | |
| @fuck = 0 | |
| end | |
| def refresh(from) | |
| puts "[#{from}] #{@fuck}" | |
| @fuck = "given" | |
| end |
| $ wget http://downloads.sourceforge.net/project/glfw/glfw/3.0.1/glfw-3.0.1.zip | |
| $ unzip glfw-3.0.1.zip | |
| $ cd glfw-3.0.1/ | |
| $ mkdir build | |
| $ cd build | |
| $ export MACOSX_DEPLOYMENT_TARGET=10.8 | |
| $ cmake -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="i386;x86_64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../ | |
| $ make | |
| $ ls -l src/libglfw* |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <math.h> | |
| #include <SDL2/SDL.h> | |
| #include <SDL2/SDL_opengl.h> | |
| DateTimeConstants constants = LocaleInfo.getCurrentLocale().getDateTimeConstants(); | |
| int firstDay = Integer.parseInt(constants.firstDayOfTheWeek()) - 1; | |
| int offset = firstDay - date.getDay(); | |
| date.setDate(date.getDate() + offset); |
| 1 sudo apt-get install curl git-core | |
| 2 bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
| 3 echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc | |
| 4 source ~/.bashrc | |
| 5 sudo apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion | |
| 6 rvm install 1.9.2 | |
| 7 rvm use 1.9.2 --default | |
| 8 ruby -v | |
| 9 gem install rails | |
| 10 sudo apt-get install nodejs |
| --------------------- | |
| PROBLEMA: | |
| Permitir acesso ou requisição via jQuery entre dominios | |
| --------------------- | |
| SOLUÇÂO: | |
| [rails / your controller ] | |
| after_filter :set_access_control_headers |