Skip to content

Instantly share code, notes, and snippets.

View donnywals's full-sized avatar
:bowtie:

Donny Wals donnywals

:bowtie:
View GitHub Profile
@donnywals
donnywals / Daniel_Jalkut_-_Apple’s_big_new_language.md
Created November 9, 2015 08:59
Notes about the first talk at do-ios

Daniel Jalkut - Apple’s big new language

  • 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
class MainViewController: UIViewController() {
var viewModel = WebsiteList()
func tabsButtonPressed() {
let vc = ListView(vm: viewModel)
// present the vc
}
}
class ListView: UIViewController {
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;
}
/*
* see http://krijnhoetmer.nl/stuff/javascript/media-queries/
*/
var App = App || {};
(function(){
var screenSizeTest = function(mediaQuery){
return window.matchMedia(mediaQuery).matches;
}
@donnywals
donnywals / mamp_alias
Created August 22, 2014 08:42
MAMP command line alias
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"
@donnywals
donnywals / dabblet.css
Created March 22, 2013 08:21
Inline-block not done
/**
* Inline-block not done
*/
* {
box-sizing: border-box;
}
section:nth-of-type(2) {
font-size: 32px;
<?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'];
// 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']."',
/**
* Responsive blog layout te doen
*/
article {
display: inline-block;
vertical-align: top;
}
nav li {
display: block;
@donnywals
donnywals / gist:2349409
Created April 10, 2012 08:41
Les 2 front end
<!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>