workflow:
$ rails g model NameOfModel
invoke active_record
create db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rb| /** | |
| * | |
| * ┏┓ ┏┓ | |
| * ┏┛┻━━━┛┻┓ | |
| * ┃ ┃ | |
| * ┃ ━ ┃ | |
| * ┃ ┳┛ ┗┳ ┃ | |
| * ┃ ┃ | |
| * ┃ ┻ ┃ | |
| * ┃ ┃ |
| #include <stdio.h> | |
| int main(void) { | |
| int a[3] = {1, 2, 3}; | |
| for (size_t i = 0; i < 3; i++) { | |
| printf("%d\n", i[a]); | |
| } | |
| return 0; | |
| } |
| 'use strict' | |
| let func = (a, b, c) => { | |
| a = "a-new-value" | |
| b = b + "+ b-new-value" | |
| c[0] = "c-new-value1" | |
| } | |
| let a = "a-old-value" | |
| let b = "b-old-value" |
| (while true; do | |
| ss-qt5 | |
| done) & |
| def word_count(str) | |
| str_ary = str.split(" ") | |
| str_hash = Hash.new(0) | |
| str_ary.each do |s| | |
| str_hash[s] += 1 | |
| end | |
| return str_hash | |
| end |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <unistd.h> | |
| #include <ctype.h> | |
| int main(int argc, const char *argv[]) { | |
| bool aflag = false; | |
| bool bflag = false; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <getopt.h> | |
| /* Flag set by ‘--verbose’. */ | |
| static int verbose_flag; | |
| int main(int argc, const char *argv[]) { | |
| int c; |
| #include <stdio.h> | |
| int main(void) { | |
| int a = 0; | |
| int b = 1; | |
| printf("%d&%d=%d\n", a, b, a&b); | |
| printf("%d&%d=%d\n", a, a, a&a); | |
| printf("%d&%d=%d\n", b, b, b&b); | |
| printf("%d|%d=%d\n", a, b, a|b); |
| (defn gcd | |
| [div rem] | |
| (if (= rem 0) | |
| div | |
| (gcd rem (mod div rem)))) |