- REpresentational State Transfer
- Introduced by Roy Fielding in 2000
- Lets focus on APIs.
- Lets talk about the Richardson Maturity Model
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
| map <Leader>al :call MoveDownLine()<CR> | |
| function! MoveDownLine() | |
| let cols=col('.') | |
| execute "normal! j" | |
| let next_cols=col('.') | |
| let delta_cols=cols-next_cols | |
| if(delta_cols > 0) | |
| if(next_cols==1) | |
| let delta_cols += 1 |
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
| int buzz_lock(buzz_t lock) { | |
| ... | |
| if(full_active_threads(lock)) { | |
| add_to_waiting_threads(thread, lock); | |
| do { | |
| wait(lock); | |
| if(is_gold(thread)) { | |
| if(is_old(thread, lock)) { |
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
| class Bandcamp | |
| attr_accessor :tags | |
| #=> Defines: | |
| def tags | |
| @tags | |
| end | |
| def tags=(tags) | |
| @tags = tags | |
| end |
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
| test2 |
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
| require 'tempfile' | |
| class Demo | |
| def initialize(&block) | |
| instance_eval &block | |
| end | |
| def wait_for_enter | |
| puts "Press enter to continue" | |
| gets |
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
| \newcounter{ct} | |
| \newcommand{\Rate}[1]{ | |
| \forloop{ct}{0}{\value{ct} < #1}{\filledlargestar } | |
| \forloop{ct}{\value{ct}}{\value{ct} < 5}{\largestar } | |
| } |
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
| class Demo | |
| def initialize(&block) | |
| instance_eval &block | |
| end | |
| def wait_for_enter | |
| puts "Press enter to continue" | |
| gets | |
| end |
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
| This should never be seen again! |
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
| [ 0.000000] Process ID:3899 | |
| [ 0.000000] Process has 10 threads | |
| [ 0.000000] /proc/lfprng was accessed! | |
| [ 0.000000] Process ID:3899 | |
| [ 0.000000] Process has 10 threads | |
| [ 0.000000] /proc/lfprng was accessed! | |
| [ 0.000000] Process ID:3899 | |
| [ 0.000000] Process has 10 threads | |
| [ 0.000000] /proc/lfprng was accessed! | |
| [ 0.000000] Process ID:3899 |
