| Filter | Description | Example |
|---|---|---|
| allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
| intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
| inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
| allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
| intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
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
| # live < 2, die | |
| # live 2/3. live | |
| # live with > 3, die | |
| # dead with == 3, spawn | |
| size = 20 | |
| board = Array.new(size*size) { rand(2) } | |
| loop do | |
| board.each.with_index { |cell, index| print "\n" if index % size == 0; print cell } |
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
| # | |
| # STARTAPRX: start aprx on boot. Should be set to "yes" once you have | |
| # configured aprx. | |
| # | |
| STARTAPRX="yes" | |
| # | |
| # Additional options that are passed to the Daemon. | |
| # | |
| DAEMON_OPTS="" |
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
| mycall 9M2ROL-1 | |
| <aprsis> | |
| passcode 14257 | |
| server aprs.myaprs.my 14580 | |
| server aprs2.myaprs.my 14580 | |
| server asia.aprs2.net 14580 | |
| filter t/moq/9M2ROL-1/100 | |
| </aprsis> |
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
| <%# Put this code snippet between the <head></head>-tags in your application layout and %> | |
| <%# replace 'UA-XXXXXXXX-X' with your own unique Google Analytics Tracking ID %> | |
| <%# ... %> | |
| <head> | |
| <%# ... %> | |
| <% if Rails.env.production? %> | |
| <script type="text/javascript"> | |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
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
| - Check rails version | |
| $ rails -v | |
| - To update rails | |
| $ gem update rails | |
| - Creating a new rails app using postgresql | |
| $ mkdir rails_projects | |
| $ cd rails_projects | |
| $ rails new myapp --database=postgresql |
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
| S1: | |
| CQ CQ CQ DE S1 K | |
| - Calling anyone (CQ), this is (DE) S1, listening for any response (K) | |
| S2: | |
| S1 DE S2 KN | |
| - Calling S1, this is S2, listening for a response only from designated station (KN) (Two-way connection established) | |
| S1: | |
| S2 DE S1 = GA DR OM UR RST 5NN HR = QTH TIMBUKTU = OP IS JOHN = HW? S2 DE S1 KN |
- Install homebrew (http://brew.sh/)
- Install Ruby. We are going to use rbenv (https://github.com/sstephenson/rbenv)
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
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
| Location.find_or_create_by(name: "Johor", | |
| name: "Kedah", | |
| name: "Kelantan", | |
| name: "Kuala Lumpur", | |
| name: "Melaka", | |
| name: "Negeri Sembilan", | |
| name: "Pahang", | |
| name: "Penang", | |
| name: "Perak", | |
| name: "Perlis", |
NewerOlder