This file contains 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>Css button preview</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=100" > | |
<!--[if lt IE 10]> | |
<script type="text/javascript" src="PIE.js"></script> | |
<![endif]--> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> | |
<script type="text/javascript"> |
This file contains 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 linechart = Raphael(document.getElementById('holder')). | |
g.linechart(10,10,400,400,[1,2,3,4,5,6],[[5,4,3,2,1,0],[5,3,4.3,3,2,0]], { | |
shade:true, | |
smooth:true, | |
axisxstep:5, | |
axis:"0 0 1 1" | |
}); | |
linechart.axis[0].text.items[3].attr('text','kjfd'); |
This file contains 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 jsonData = JSON.stringify({ | |
stad: 'Leuven', | |
soort: 'KLEI', | |
telefoonNummer: '141414' | |
}); | |
$.ajax('/plaatsen', { | |
success:function (data) {console.log(data)}, | |
type: 'PUT', | |
dataType: 'json', |
This file contains 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 getParameterByName(parameter, url) { | |
var parameterValue = RegExp("[?&]" + parameter + "=([^&]*)").exec(url); | |
return decodeURIComponent(parameterValue[1].replace(/\+/g, " ")); | |
} |
This file contains 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
new Ext.Map({ | |
useCurrentLocation: true, | |
listeners: { | |
maprender : function(comp, map){ | |
var marker = new google.maps.Marker({ | |
position: map.center, | |
title : 'testing', | |
map: map | |
}); | |
} |
This file contains 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
from flask import Flask, jsonify, request | |
app = Flask(__name__) | |
@app.route("/api/users") | |
def users(): | |
return jsonify(users = [ | |
{ | |
"firstname":"Joske", | |
"lastname": "Vermeulen" |
This file contains 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
let handler = { | |
get(target,name) { | |
return `Hello ${name}` | |
} | |
} | |
let obj = new Proxy({},handler); | |
obj.world // Hello world |
This file contains 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 createTestPerson(override) { | |
var defaultPerson = { | |
id: 1, | |
firstname: 'Bert', | |
lastname: 'Macklin' | |
} | |
return _.merge(defaultPerson, override); | |
} | |
var person1 = createTestPerson(), |
This file contains 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
using System.Collections.Generic; | |
using System.Linq; | |
using HtmlElements; | |
using HtmlElements.Elements; | |
using HtmlElements.Extensions; | |
using NUnit.Framework; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Firefox; | |
using OpenQA.Selenium.Support.PageObjects; |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using Xunit; | |
namespace Tjoelala | |
{ | |
public class Person |
OlderNewer