A Pen by Konstantinos Tsatsarounos on CodePen.
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
| <?php | |
| /** | |
| * My home file | |
| */ | |
| $test_data = [ | |
| [ | |
| 'title' => 'hello world', | |
| 'paragraphs' => [ | |
| 'Candy canes gingerbread soufflé. Danish powder donut marshmallow candy cheesecake. Jelly beans cake dessert apple pie lemon drops. Jujubes sugar plum danish ice cream. Dessert soufflé oat cake. Caramels bonbon marzipan fruitcake gummies toffee. Liquorice chocolate cake sweet roll danish brownie pie icing gingerbread. Powder tootsie roll liquorice caramels brownie pudding cake. Icing gummi bears powder tootsie roll icing. Soufflé muffin cake. Gummies chocolate cake jelly beans. Croissant wafer fruitcake tootsie roll biscuit.', |
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
| # di=5;34;43 Setting the LS_COLORS di parameter to the above example will make directories appear in flashing blue text with an orange background | |
| #0 = Default Colour | |
| #1 = Bold | |
| #4 = Underlined | |
| #5 = Flashing Text | |
| #7 = Reverse Field | |
| #31 = Red | |
| #32 = Green | |
| #33 = Orange | |
| #34 = Blue |
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
| /** | |
| * Creates a basic clock and binds it to a specified element | |
| */ | |
| class Clock { | |
| timeTemplate: string = "00:00:00"; | |
| clockHandler: number; | |
| target: HTMLElement; | |
| /** | |
| * @return string, time |
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 pressSpace(target, type) { | |
| var press = new KeyboardEvent(type, {"keyCode": 32}); | |
| if(type == 'keyup'){ target.value += ' ';} | |
| target.dispatchEvent(press); | |
| } | |
| function type(){ | |
| var text = document.getElementById('words'); | |
| var currentword = document.getElementById('currentword'); |
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 pressSpace(target, type) { | |
| var press = new KeyboardEvent(type, {"keyCode": 32}); | |
| if(type == 'keyup'){ target.value += ' ';} | |
| target.dispatchEvent(press); | |
| } | |
| function type(){ | |
| var text = document.getElementById('words'); | |
| var currentword = document.getElementById('currentword'); |
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 shortNumbers(array $numbers){ | |
| $counter = 1; | |
| for(;$counter < count($numbers); $counter++){ | |
| $x = $numbers[$counter]; | |
| $j = $counter - 1; | |
| while ( $j>=0 && $numbers[$j] > $x ){ | |
| $numbers[$j + 1] = $numbers[$j]; | |
| $j--; | |
| } |
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
| html { | |
| font-size: 16px; | |
| font-family: sans-serif; | |
| } | |
| button { | |
| border: none; | |
| background: royalblue; | |
| padding: 1em 2em; | |
| margin: .5em 0; |
A way to listen to dynamic content, observing the parent element.
A Pen by Konstantinos Tsatsarounos on CodePen.
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
| __author__ = 'Konstantinos Tsatsarounos' | |
| import time; | |
| greeting = "hello"; | |
| # a simple print func | |
| def console(str): | |
| print(str); |
NewerOlder