Skip to content

Instantly share code, notes, and snippets.

@bes89
bes89 / simulate.kt
Last active December 5, 2017 19:48
job posting for a start-up looking for an android/kotlin dev
data class Skill(val description: String)
interface AwesomeGuy
interface AndroidGeek
interface TeamPlayer
object MateCrate {
val skills = mutableListOf<Skill>()
val members = mutableListOf<AwesomeGuy>()
val benefits = mutableListOf<String>()
fun beAwesome(andDoThis: () -> Unit) = andDoThis()
@bes89
bes89 / simulate.kt
Created December 5, 2017 19:37
job posting for a start-up looking for an android/kotlin dev
data class Skill(val description: String)
interface AwesomeGuy
interface AndroidGeek
interface TeamPlayer
object MateCrte {
val skills = mutableListOf<Skill>()
val members = mutableListOf<AwesomeGuy>()
val benefits = mutableListOf<String>()
fun beAwesome(andDoThis: () -> Unit) = andDoThis()
{"v":"4.11.1","fr":29.9700012207031,"ip":0,"op":899.000036617021,"w":192,"h":298,"nm":"b-logo","ddd":0,"assets":[{"id":"image_0","w":192,"h":298,"u":"images/","p":"img_0.png"}],"layers":[{"ddd":0,"ind":1,"ty":2,"nm":"b-logo.eps","cl":"eps","refId":"image_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":77,"s":[100],"e":[0]},{"t":93.0000037879676}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[96,149,0],"ix":2},"a":{"a":0,"k":[96,149,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":0,"s":[25,25,100],"e":[30,30,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":17,"s":[30,30,100],"e":[25,25,100]},{"i":{"x":
@bes89
bes89 / Doctrine2 EntityGenerator fix
Created July 14, 2013 17:55
Doctrine2: Generate correct variable names (singular) in add or remove methods
<?php
// File: doctrine/orm/lib/Doctrine/ORM/Tools/EntityGenerator.php
// ...
class EntityGenerator
{
// ...
@bes89
bes89 / exit-notice.html
Created July 14, 2012 16:39 — forked from abits/exit-notice.html
Do stuff when user exits site.
<!-- This is a short demo how js could detect whether a user wants to leave the site.
Tested with Firefox and Chrome. (c) Christoph Martel <chris@codeways.org> -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">