- Language is mostly used to communicate with people, painters use proper paint for the message and when talking you pick the language for the person. When programming it’s the same.
- Started at apple in ’94 (software quality) and saw many pushed from apple in terms of language.
- Mac wasn’t OOP then, just flat namespace of function calls. You would write in Pascal, seemed liked Apple wanted to push Pascal. You also used 68K Assembly, Mac was written with that internally.
- Daniel wrote the equivalent of TextEdit back in 94 as a test. He had to do it in Assembly so we had to learn assembly as wel. Looks very primitive, verbose and I’m not sure I understand any of it.
- Back then there actually was a competitive space for C compilers. Apple had their own and there were a bunch of others. You were actually able to write C to make Mac apps as well.
- Apple has pushed about 20 languages over the time. NewtonScript was pushed with the Apple Newton. That was their first t
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 MainViewController: UIViewController() { | |
| var viewModel = WebsiteList() | |
| func tabsButtonPressed() { | |
| let vc = ListView(vm: viewModel) | |
| // present the vc | |
| } | |
| } | |
| class ListView: UIViewController { |
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
| var App = window.App || {}; | |
| App.Popovers = function(){ | |
| var getPopoverLeft = function(trigger_pos, $trigger_el, $popover) { | |
| var left = trigger_pos.left + $trigger_el.outerWidth()/2; | |
| left += $trigger_el.outerWidth(true) - $trigger_el.outerWidth(); | |
| left -= $popover.outerWidth()/2; | |
| return left; | |
| } |
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
| /* | |
| * see http://krijnhoetmer.nl/stuff/javascript/media-queries/ | |
| */ | |
| var App = App || {}; | |
| (function(){ | |
| var screenSizeTest = function(mediaQuery){ | |
| return window.matchMedia(mediaQuery).matches; | |
| } |
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
| alias mamp-stop="sudo killall MAMP" | |
| alias mamp-start="open -a MAMP" | |
| alias mamp-restart="mamp-stop; mamp-start" | |
| alias vhosts-open="open -t /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf" |
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
| /** | |
| * Inline-block not done | |
| */ | |
| * { | |
| box-sizing: border-box; | |
| } | |
| section:nth-of-type(2) { | |
| font-size: 32px; |
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 | |
| echo "<h1>stuff in GET</h1>"; | |
| var_dump($_GET); | |
| echo "<br /><br />"; | |
| echo "<h1>stuff in POST</h1>"; | |
| var_dump($_POST); | |
| echo "<br /><br />"; | |
| if(isset($_GET['val'])) { | |
| $val = $_GET['val']; |
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
| // Dit is fout, volgens mij. | |
| $query = "UPDATE product SET (name, description, price, link, image) VALUES ('$_POST[name]', '$_POST[description]', '$_POST[price]', '$_POST[link]', '$product[image]') WHERE ID = '".$product['ID']."';"; | |
| // Zo doe ik het altijd: | |
| $query = " | |
| UPDATE product | |
| SET | |
| name = '".$_POST['name']."', | |
| description = '".$_POST['description']."', | |
| price = '".$_POST['price']."', | |
| link = '".$_POST['link']."', |
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
| /** | |
| * Responsive blog layout te doen | |
| */ | |
| article { | |
| display: inline-block; | |
| vertical-align: top; | |
| } | |
| nav li { | |
| display: block; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Video in html5</title> | |
| <meta charset="UTF-8"> | |
| </head> | |
| <body> | |
| <video controls> | |
| <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4"></source> | |
| <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm"></source> |