I hereby claim:
- I am salbito on github.
- I am salbito (https://keybase.io/salbito) on keybase.
- I have a public key whose fingerprint is 4FC3 B5E1 280A EAEA 9F1B 94D0 C4DF C9BD 0D46 BAA6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| call plug#begin('~/.config/nvim/plugged') | |
| " Airline | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'vim-airline/vim-airline-themes' | |
| " Ale | |
| " Plug 'w0rp/ale' | |
| " Colorscheme |
| cd | |
| mkdir -p ~/Robotics | |
| cd ~/Robotics | |
| curl https://raw.githubusercontent.com/mikepurvis/ros-install-osx/master/install | bash | |
| brew install python qt5 wget | |
| xcode-select --install |
| Recv: Classic PID | |
| Recv: Kp: 27.99 Ki: 2.18 Kd: 89.88 | |
| Recv: PID Autotune finished! Put the last Kp, Ki and Kd constants from below into Configuration.h | |
| Recv: #define DEFAULT_Kp 27.99 | |
| Recv: #define DEFAULT_Ki 2.18 | |
| Recv: #define DEFAULT_Kd 89.88 | |
| Recv: ok |
| export default TechStackCheckboxes extend Component { | |
| createTechStackCheckboxes() { | |
| // starts with unchecked box | |
| const isAllChecked = false; | |
| // map out techStackItems and crate input boxes for each item | |
| return this.props.techStackItems.map((item) => ( | |
| <div key={item}> | |
| <input | |
| key={item} |
| /* | |
| Triangle with Shadow | |
| */ | |
| .triangle-with-shadow { | |
| width: 50px; | |
| height: 200px; | |
| position: relative; | |
| overflow: hidden; | |
| box-shadow: 0 16px 10px -17px rgba(0,0,0,0.5); |
| //Customise Backbone.sync to work with Titanium rather than jQuery | |
| Backbone.sync = (function() { | |
| var methodMap = { | |
| 'create': 'POST', | |
| 'read' : 'GET', | |
| 'update': 'PUT', | |
| 'delete': 'DELETE' | |
| }; | |
| var xhr = Ti.Network.createHTTPClient({ timeout: 5000 }); |
| SIGN UP | |
| curl -H "Content-Type:application/json" -H "Accept:application/json" \ | |
| -d "{\"user\":{\"password_confirmation\":\"12345678\", \"password\":\"12345678\", \"email\":\"[email protected]\"}}" \ | |
| http://your_server.com/users | |
| SIGN IN | |
| curl -H "Content-Type:application/json" -H "Accept:application/json" \ | |
| -d "{\"user\":{\"remember_me\":\"0\", \"password\":\"12345678\", \"email\":\"[email protected]\"}}" \ | |
| http://your_server.com/users/sign_in |
| def index | |
| @details = Details.where(["id != ?", 0]) | |
| @detail_params = Details.attr_accessible.to_a | |
| for detail_param in @detail_params | |
| if params[detail_param] | |
| @details = @details.where(["#{detail_param} = ?", params[detail_param.intern]]) | |
| end | |
| end | |
| @user_ids = @details.select(:user_id).map{|d| d.user_id} | |
| @users = User.find(@user_ids) |
| def new | |
| @questions = Question.find_all_by_survey_id(params[:survey_id]) | |
| @answers = @questions.map{|q| q.answers.build} | |
| respond_to do |format| | |
| format.html # new.html.erb | |
| format.xml { render :xml => @answer } | |
| end | |
| end |