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 ( | |
| "errors" | |
| "fmt" | |
| "reflect" | |
| ) | |
| // HeterogeneousList represents a list that can hold any type of data | |
| type HeterogeneousList 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
| package enums | |
| // < ----- This is your core template | |
| type CatEnum interface{ | |
| enum() catEnumStruct | |
| } | |
| type catEnumStruct struct {} | |
| func (c catEnumStruct) enum() catEnumStruct { |
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
| (function dyslexify() { | |
| document.head.innerHTML = `<style> | |
| @font-face { | |
| font-family: myFirstFont; | |
| src: url('https://s3-eu-west-1.amazonaws.com/open-dyslexic/OpenDyslexic3-Regular.woff'); | |
| } | |
| * { | |
| font-family: myFirstFont !important; | |
| } |
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
| void consoleLogHelper() {}; | |
| template <typename T> | |
| void print(T t) { | |
| std::cout << t << " "; | |
| } | |
| template <typename T, typename...Ts> | |
| void consoleLogHelper(T &&first, Ts&&... rest) { | |
| // print it |
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
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int size, temp; | |
| cout << "insert number" << endl; | |
| cin >> size; | |
| int arr[size]; | |
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 uploader | |
| import ( | |
| "github.com/aws/aws-sdk-go/service/s3" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/aws" | |
| // ... | |
| ) |
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 ( | |
| "my_app/replace_file_lines" | |
| "my_app/uploader" | |
| // ... | |
| ) |
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 replace_file_lines | |
| import ( | |
| // ... | |
| ) | |
| // Variables that begin with an uppercase is exposed | |
| var PublicVariable int = 42 | |
| // While those that begin with loweracse are private to the module | |
| var privateVariable int = 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
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int num, c, d, e; | |
| do { | |
| cout << "Enter a 2 digit numbers:"<< endl; | |
| cin >> num; |
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 main() { | |
| return 0; | |
| } |
NewerOlder