Skip to content

Instantly share code, notes, and snippets.

View TrebuhD's full-sized avatar

Hubert Dworczyński TrebuhD

  • XITE
  • Amsterdam
View GitHub Profile
@TrebuhD
TrebuhD / sc-navdrawer_test.html
Created December 15, 2017 11:20
Polymer test times out
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<script src="/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<script src="/bower_components/web-component-tester/browser.js"></script>
<script src="/bower_components/test-fixture/test-fixture-mocha.js"></script>
<paper-button opan="{{nonono}}"></paper-button>
~~~~
my-elem.html(9,24) warning [set-unknown-attribute] - paper-button elements do not have a property named opan. Consider instead: open
@TrebuhD
TrebuhD / OverrideControllerTexture.cs
Last active September 12, 2018 21:48
Script to override SteamVR controller textures on load. Modified from »Mr_FJ« https://steamcommunity.com/app/358720/discussions/0/357287304420388604/
using UnityEngine;
using System.Collections;
/// <summary>
/// Override the texture of each of the parts with your texture.
/// </summary>
public class OverrideControllerTexture : MonoBehaviour
{
#region Public variables
[Header("Variables")]
/*
LiquidCrystal Library - Hello World
Demonstrates the use a 16x2 LCD display. The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver. There are many of them out there, and you
can usually tell them by the 16-pin interface.
This sketch prints "Hello World!" to the LCD
and shows the time.
@TrebuhD
TrebuhD / The Technical Interview Cheat Sheet.md
Created December 19, 2016 19:44 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@TrebuhD
TrebuhD / Okno
Last active August 29, 2015 14:21
import javax.swing.JFrame;
import java.awt.*;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeListener;
import java.text.*;
public class Okno extends JFrame {
#include <unistd.h>
int main(void) {
while(1) {
system("/bin/date");
sleep(1);
}
return 0;
}
#include <unistd.h>
int main(void) {
while(1) {
execl("/bin/date", "/bin/date", NULL);
sleep(1);
}
return 0;
}