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 CountNotifier extends ChangeNotifier { | |
| int _count = 0; | |
| int get count => _count; | |
| set count(int count) { | |
| _count = notifyPropertyChange(#count, _count, count); | |
| } | |
| } |
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" | |
| import "encoding/json" | |
| import "time" | |
| type ( | |
| Container map[string]Variable | |
| Variable interface { | |
| GetName() string |
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 <stdio.h> | |
| #include <string.h> | |
| void printArray(int a[]) { | |
| int i = 0; | |
| for(i = 0; i < 10; i++) { | |
| printf("%d ", a[i]); | |
| } | |
| printf("\n"); | |
| } |
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 | |
| //#include<stdio.h> | |
| //void inC() { | |
| // printf("I am in C code now!\n"); | |
| //} | |
| import "C" | |
| import "fmt" | |
| func main() { |
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
| CC = gcc | |
| LD_FLAGS = -lavformat -lavcodec | |
| all: get_width_and_height | |
| get_width_and_height: get_width_and_height.c | |
| $(CC) -o $@ $< $(LD_FLAGS) | |
| clean: | |
| rm get_width_and_height |
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
| #add required waveforms | |
| add wave -position end sim:/fileio/i_a | |
| add wave -position end sim:/fileio/i_b | |
| add wave -position 0 sim:/fileio/i_c | |
| add wave -position end sim:/fileio/clk | |
| add wave -position end sim:/fileio/endoffile | |
| #vcd waveform | |
| vcd file fileio.vcd | |
| vcd add * |
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
| library ieee; | |
| use ieee.std_logic_1164.all; | |
| use ieee.numeric_std.all; | |
| entity comp is port ( | |
| a_i : in std_ulogic_vector(3 downto 0); | |
| c_o : out std_ulogic | |
| ); | |
| end entity comp; |
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; | |
| class Base { | |
| public: | |
| virtual void print() { | |
| cout << "in base" << endl; | |
| } | |
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 Assignable { | |
| private: | |
| int vPrivate = 0; | |
| public: | |
| int vPublic = 0; | |
| Assignable() { | |
| vPrivate = 0; | |
| vPublic = 0; | |
| cout << "Constructed()" << endl; |
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
| wget https://addons.mozilla.org/firefox/downloads/file/143056/ff_fullscreen-7-fx.xpi | |
| unzip ff_fullscreen-7-fx.xpi -d fullscreen | |
| rm ff_fullscreen-7-fx.xpi | |
| #TODO: get id | |
| #TODO: move extension directory with id as name |