Skip to content

Instantly share code, notes, and snippets.

View pepf's full-sized avatar
🚀
Flying to the moon

Pepijn pepf

🚀
Flying to the moon
View GitHub Profile
#include <SoftwareSerial.h>
// Blueduino comunicate with BLE module through pin11, pin12 as soft serial.
SoftwareSerial mySerial(11, 12); //RX,TX
String tmp;
void setup() {
// Start soft serial
mySerial.begin(9600);
@pepf
pepf / index.html
Last active August 29, 2015 14:06 — forked from anonymous/index.html
<div id="menu">
<div id="top"> <!-- "viewport" for menu -->
<div class="swipecontainer"> <!-- Moving part for menu items -->
<ul class="swipemenu">
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
<li>Five</li>
<li>Very long Six</li>
@pepf
pepf / test
Created October 4, 2014 13:30
arduino led test code
int pins[] = {3,5,9,10,11};
int nr = 5;
// the setup routine runs once when you press reset:
void setup() {
Serial.begin(9600);
// declare pins[] to be an output:
for (int i =0; i<nr; i++) {
pinMode(pins[i],OUTPUT);
analogWrite(pins[i],0);
@pepf
pepf / canonicalize_filename.sh
Last active August 29, 2015 14:15
precommit hook: search commit for debug statements
#!/bin/sh
# Provide the canonicalize filename (physical filename with out any symlinks)
# like the GNU version readlink with the -f option regardless of the version of
# readlink (GNU or BSD).
# This file is part of a set of unofficial pre-commit hooks available
# at github.
# Link: https://github.com/githubbrowser/Pre-commit-hooks
# Contact: David Martin, david.martin.mailbox@googlemail.com
<?php
//encoding a fancy emoji to ascii
$a = json_encode("💩"); //json_encode casts emoji string to readable ascii
var_dump($a);
//other way around
echo "\n\n<br/><br/>";
//based on the encoded variable
@pepf
pepf / 2018.geojson
Last active February 22, 2018 21:51
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pepf
pepf / nature.geojson
Created February 23, 2018 13:17
Nature in eindhoven
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java b/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java
index 54a5fb8..d617dcf 100644
--- a/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java
+++ b/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java
@@ -8,6 +8,7 @@ import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
+import android.util.Log;
@pepf
pepf / wordpress-persist.yaml
Created May 17, 2023 09:57
k8s deployment with wordpress setup + persist db
apiVersion: v1
kind: Service
metadata:
name: wordpress-mysql
spec:
selector:
app: wordpress-mysql
type: LoadBalancer
ports:
- name: postgres