Skip to content

Instantly share code, notes, and snippets.

View miquels's full-sized avatar

Miquel van Smoorenburg miquels

  • Adyen
  • Amsterdam
View GitHub Profile
@miquels
miquels / split_str2.c
Created April 30, 2018 21:14
Advanced demo voor mies
#include <stdio.h>
#include <string.h>
#include <malloc.h>
struct key_val {
char *key;
char *value;
};
struct key_val *key_val_split(char *input)
@miquels
miquels / split_str.c
Created April 30, 2018 19:11
Demo voor mies
#include <stdio.h>
#include <string.h>
int str_split(char *in, char *out[2])
{
out[0] = strtok(in, "=");
out[1] = strtok(NULL, "=");
return out[1] == NULL ? -1 : 0;
}
@miquels
miquels / vuetify-dev-link.md
Created March 14, 2017 10:07
Using the vuetify 'dev' branch in your project
@miquels
miquels / object-fit-css.md
Last active June 19, 2024 20:28
object-fit equivalents in pure css

object-fit equivalents in pure css

HTML

<div class="container">
  <img src="http://thetvdb.com/banners/fanart/original/78804-61.jpg">
</div>

Object-fit:contain

@import '../../node_modules/vuetify/src/stylus/settings/_colors'
$color-root := #FFFFFF
$body-bg := $grey.darken-4
$theme := {
primary: $blue.base,
accent: $blue.accent-1,
secondary: #181818,
info: $blue.base,
warning: $amber.base,
error: $red.base,