Install the Rails gem if you haven't done so before
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
| Python 3.9.7 (default, Oct 12 2021, 22:38:23) | |
| [Clang 13.0.0 (clang-1300.0.29.3)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> | |
| >>> x = [1, 2, 3, 4, 5] | |
| >>> x.append(6) | |
| >>> x | |
| [1, 2, 3, 4, 5, 6] | |
| >>> x.index(6) | |
| 5 |
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
| FROM python:3.9.7 | |
| MAINTAINER Clivern | |
| RUN mkdir -p /etc/muffin | |
| VOLUME /etc/muffin | |
| CMD ["python"] |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
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
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| // DB type | |
| type DB struct{} |
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
| fn sum<T: std::ops::Add<Output = T>>(n1: T, n2: T) -> T { | |
| n1 + n2 | |
| } | |
| fn max<T: std::cmp::PartialOrd>(n1: T, n2: T) -> T { | |
| if n1 > n2 { n1 } else { n2 } | |
| } | |
| fn main() { | |
| println!("{}", sum(2, 3)); |
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
| // Pass by refernce | |
| fn double1(x: &mut [i32; 10]) { | |
| for i in 0..10 { | |
| x[i] += 2; | |
| } | |
| } | |
| // Pass by value | |
| fn double2(x: [i32; 10]) -> [i32; 10] { |
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
| struct Student { | |
| Name: String, | |
| Age: i16, | |
| } | |
| struct Stud(String, i16); | |
| const JKO: i32 = 3; | |
| enum VehicleType { |
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
| // Copyright 2021 Clivern. All rights reserved. | |
| // Use of this source code is governed by the MIT | |
| // license that can be found in the LICENSE file. | |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "sync" |
