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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <LTTextBox>MALAYSIA | |
| </LTTextBox> | |
| <LTTextBoxHorizontal>MALAYSIA | |
| </LTTextBoxHorizontal> | |
| <LTTextBox>DEWAN RAKYAT | |
| </LTTextBox> | |
| <LTTextBoxHorizontal>DEWAN RAKYAT | |
| </LTTextBoxHorizontal> | |
| <LTTextBox>ORDER PAPER |
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
| MALAYSIA | |
| DEWAN RAKYAT | |
| ATURAN URUSAN MESYUARAT | |
| NASKHAH SAHIH/BAHASA MALAYSIA | |
| http://www.parlimen.gov.my |
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
| import json | |
| """ | |
| >>> c = C() | |
| >>> c.a = 1 | |
| >>> c.b = 2 | |
| >>> c.__dict__ | |
| {'a':1,'b':2} | |
| >>> c.to_json() | |
| '{"a":1,"b":2}' |
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
| """ | |
| >>> s = Sample() | |
| >>> s.__dict__ | |
| {'test_val':1,'another_val':'a'} | |
| >>> 'test_val' in s.__dict__ | |
| True | |
| """ | |
| class Sample: | |
| def __init__(self): | |
| self.test_val = 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
| #include <LCD4Bit_mod.h> | |
| #include <EEPROM.h> | |
| LCD4Bit_mod lcd = LCD4Bit_mod(2); | |
| long randno; | |
| int EEPROM_SIZE = 512; | |
| int SIZE = 0; | |
| void setup() { | |
| pinMode(13, OUTPUT); //we'll use the debug LED to output a heartbeat |
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
| sed "s/,/|/g" $1 > /tmp/pass1 | |
| tr "\r\n" "|" < /tmp/pass1 > $2 | |
| rm /tmp/pass1 |
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 <EEPROM.h> | |
| int EEPROM_SIZE = 512; | |
| int incoming = 0; | |
| char words; | |
| int pos = 0; | |
| int data; | |
| void setup(){ | |
| Serial.begin(9600); | |
| } |
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 <LCD4Bit_mod.h> | |
| #include <EEPROM.h> | |
| //create object to control an LCD. | |
| //number of lines in display=1 | |
| LCD4Bit_mod lcd = LCD4Bit_mod(2); | |
| int adc_key_val[5] ={30, 150, 360, 535, 760 }; | |
| int NUM_KEYS = 5; | |
| int adc_key_in; |
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 <LCD4Bit_mod.h> | |
| //create object to control an LCD. | |
| //number of lines in display=1 | |
| LCD4Bit_mod lcd = LCD4Bit_mod(2); | |
| int adc_key_val[5] ={30, 150, 360, 535, 760 }; | |
| int NUM_KEYS = 5; | |
| int adc_key_in; | |
| int key=-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
| import functools | |
| def adder(a,b,c): | |
| return a+b+c | |
| def adder2(a,b): | |
| return a+b | |
| add_three = functools.partial(adder,1,2) | |
| add_one = functools.partial(adder2,1) |