Skip to content

Instantly share code, notes, and snippets.

View TimBorowy's full-sized avatar

Tim Borowy TimBorowy

View GitHub Profile
@TimBorowy
TimBorowy / webpack.config.js
Last active April 13, 2023 12:55
TS webpack config
// Generated using webpack-cli https://github.com/webpack/webpack-cli
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyWebpackPlugin = require('copy-webpack-plugin');
const isProduction = process.env.NODE_ENV == "production";
const stylesHandler = MiniCssExtractPlugin.loader;
@TimBorowy
TimBorowy / index.html
Created April 16, 2020 19:24
webcam upload
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

Keybase proof

I hereby claim:

  • I am timborowy on github.
  • I am timborowy (https://keybase.io/timborowy) on keybase.
  • I have a public key ASDCopXpBJSDCvzO4oMTErD26sp2ZHfaNhpzK82p6NCPogo

To claim this, I am signing this object:

@TimBorowy
TimBorowy / client.js
Created April 7, 2019 14:59
WebRTC enzo
const ws = new WebSocket('ws://localhost:8080')
ws.onopen = () => {
console.log('Connected to the signaling server')
}
ws.onerror = err => {
console.error(err)
}
<?php
namespace App\Http\Controllers;
use App\Massage;
use App\Massage_tags;
use App\Tag;
use Illuminate\Http\Request;
class MassageController extends Controller
//projects
let project = {
show: function(caller){
let id = $(caller).data('id');
fetch('/api/project/'+id).then(
function(response) {
if (response.status !== 200) {
console.log('Looks like there was a problem. Status Code: ' + response.status);
@TimBorowy
TimBorowy / bluetooth_glass_tracker.ino
Created October 11, 2017 11:37
arduino bluetooth glass tracker
#include <SoftwareSerial.h>
#include <Adafruit_NeoPixel.h>
#define LEDPIN 6
SoftwareSerial BT(1, 0);
Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, LEDPIN, NEO_GRB + NEO_KHZ800);
long time;
long maxTimeBetween = 1000;
int ledPin = 13;
int buzzer = 9;
@TimBorowy
TimBorowy / useless_robot_code.ino
Created September 6, 2017 11:50
Useless robot code
#include <Servo.h>
Servo armservo;
Servo fuckYouServo;
// arm servo defaults
int downPos = 60;
int startPos = 160;
int motorPin = 3;
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
@TimBorowy
TimBorowy / Database.php
Created March 15, 2017 19:50
Database migration script
<?php
/**
* Created by PhpStorm.
* User: Tim
* Date: 16-2-2016
* Time: 13:27
*/
class Database