Skip to content

Instantly share code, notes, and snippets.

View mandulaj's full-sized avatar
🤖
👍

Jakub Mandula mandulaj

🤖
👍
View GitHub Profile
@mandulaj
mandulaj / filter1.txt
Created March 31, 2019 21:10
DSP filter coefficients
0.000000000r,
-0.000000000r,
-0.000000001r,
-0.000000003r,
-0.000000004r,
-0.000000006r,
-0.000000007r,
-0.000000007r,
-0.000000005r,
-0.000000000r,
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"math/rand"
"os"
)
@mandulaj
mandulaj / startWlan.bat
Last active October 27, 2015 12:25
Windows Wifi hotspot creation
netsh wlan stop hostednetwork
netsh wlan set hostednetwork mode=allow ssid=NANANA key=password123
netsh wlan start hostednetwork
@mandulaj
mandulaj / picounter.c
Last active October 27, 2015 12:10
Pi counter for ATtiny84
/* picounter.c
Counts digits of pi in binary.
*/
void setup() {
pinMode(0, OUTPUT);
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
}
<!doctype html>
<html>
<head>
<title>SSH Client</title>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<style>
body {
margin: 0;
padding: 0;
@mandulaj
mandulaj / ssh_config
Created May 12, 2015 20:42
SSH configuration
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.
@mandulaj
mandulaj / .bashrc
Created April 7, 2015 11:52
My bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@mandulaj
mandulaj / gitdeploy.sh
Created April 1, 2015 16:19
Git deployment to gh-pages
BUILD_DIR=build
git add -f $BUILD_DIR
git commit -m "git deployment"
git push origin `git subtree split --prefix $BUILD_DIR master`:gh-pages --force
git reset HEAD^
git reset $BUILD_DIR
@mandulaj
mandulaj / fake.js
Created January 25, 2015 15:05 — forked from kentcdodds/fake.js
var colors = [
'rgb(30, 104, 35)', 'rgb(68, 163, 64)', 'rgb(140, 198, 101)', 'rgb(214, 230, 133)', 'rgb(238, 238, 238)'
];
var days = $('.js-calendar-graph-svg').find('rect.day');
days.css({
fill: colors[4]
});
days.on('click', function(e) {
e.stopPropagation();
$this = $(this);
package com.company;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
public class GameOfLife extends JFrame
{