- https://rubyinstaller.org/downloads/
- https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.3-1/rubyinstaller-devkit-2.5.3-1-x64.exe
- Install with DevKit (will run ridk)
- Select option 3
ridk exec pacman -S mingw-w64-x86_64-sqlite3 mingw-w64-x86_64-libxslt mingw-w64-x86_64-libxml2gem install rails --no-ri --no-rdocrails new APP. The installation will fail. So...- Edit Gemfile
- Change
gem sqlitetogem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec" cd APP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.5.6) | |
| // Compass (vundefined) | |
| // ---- | |
| //Variables | |
| $breakpoints: ( | |
| tablet: 768px, | |
| desktop: 1024px | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I resolved this by opening dev tools (F12), click the "Preserve log" checkbox, and make the request that results in the cached 301. Right-click the request that results in the 301 and click "clear browser cache". Try again and then 301 should no-longer be cached. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getFrameForCamera: camNum | |
| | f n | | |
| (self cameraIsOpen: camNum) | |
| ifFalse: [ (self | |
| openCamera: camNum | |
| width: 640 | |
| height: 480) | |
| ifNil: [ ^ self inform: 'no camera' ] ]. | |
| self waitForCameraStart: camNum. | |
| (self frameExtent: camNum) x = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install i3 | |
| sudo apt-get install xserver-xorg | |
| sudo apt-get install xinit | |
| sudo startx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| code `git diff --name-only --diff-filter=U | tr '\n' ' '` |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
- RubyInstaller 2.4.3.2
- MSYS2> OPT:3
- cmd>
ridk exec pacman -S mingw-w64-x86_64-libxslt gem install nokogiri --platform ruby -- --use-system-librariesridk exec pacman -S mingw-w64-x86_64-sqlite3gem install sqlite3 --platform rubygem install bundlergem install rails- cd app
- Gemfile:
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]>gem 'tzinfo-data'