Skip to content

Instantly share code, notes, and snippets.

View notflip's full-sized avatar
🎯
Focusing

Miguel Stevens notflip

🎯
Focusing
  • Studio Monty
  • Ghent, Belgium
View GitHub Profile
{
"meta": {
"theme": "short"
},
"basics": {
"name": "Miguel Stevens",
"label": "Web Developer & Digital Creative",
"email": "miguel@notflip.be",
"phone": "+32 483 02 99 47",
"summary": "No better way to introduce yoursel then to sum up your values! These are mine: Adventurousness, Competitiveness, Creativity, Curiosity, Freedom, Fun, Originality, Friendship, Happiness, Humor, Respect, Ambition, Design, Beauty, Knowledge, Risk, Courage",
"content_scripts": [
{
"matches": [
"https://read.amazon.com/*",
"file:///*"
],
"js": [
"js/content.js"
],
"run_at": "document_start"
@notflip
notflip / fizz.php
Created September 24, 2019 18:58
FizzBuzz Solid
<?php
interface rule
{
public function validates(int $number): bool;
public function replace(): string;
}
class IsEvenRule implements Rule
{
@notflip
notflip / mouse.py
Last active August 4, 2019 08:48
Python Joystick Mouse
#!/usr/bin/env python3
import spidev
import time
import struct
spi = spidev.SpiDev()
spi.open(0,0)
spi.max_speed_hz=100000
deadzone = 20
@notflip
notflip / wpa_supplicant.conf
Created May 16, 2019 10:45
WPA Supplicant Raspberry PI 3
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=BE
network={
ssid="Ssid"
psk="Password"
key_mgmt=WPA-PSK
}
@notflip
notflip / data.js
Last active November 30, 2018 16:01
NoSQL Model
"users": [
"user1": {
"id": "user1",
"username": "Notflip"
}
]
"categories": [
"category1": {
"name": "Productivity",
@notflip
notflip / spacing.scss
Created November 17, 2017 13:44
Bootstrap 4 Spacing for Bootstrap 3
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
) !default;
$spacer: 20px !default;
$spacers: (
@notflip
notflip / run.sh
Last active October 10, 2017 10:03
AWS EC2 LEMP Setup
cat ~/.ssh/id_rsa.pub | ssh -i "#DOMAIN#.pem" ubuntu@ec2-#DOMAIN-IP#.eu-central-1.compute.amazonaws.com "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
# SSH into the instance
ssh -i "#DOMAIN#.pem" ubuntu@ec2-#DOMAIN-IP#.eu-central-1.compute.amazonaws.com
# Update Packages and install Nginx
sudo apt-get update
sudo apt-get install -y nginx composer git
# Install and setup MySQL
@notflip
notflip / config.xml
Created May 23, 2017 08:52
Phonegap Barcode Example
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.example"
versionCode = "10"
version = "1.0.0" >
<name>Phonegap Barcodescanner</name>
<description>Barcodescanner voorbeeld</description>
<author href="https://notflip.be" email="miguel@notflip.be">Miguel Stevens</author>
@notflip
notflip / model.php
Last active March 31, 2021 18:12
Laravel WhereHasNot
public function scopeUnClaimed($query)
{
return $query->whereHas('claims',function($q) {
$q->where('dentist_id', $user->dentist->id);
}, '<', 1);
}