Skip to content

Instantly share code, notes, and snippets.

/*
* 2017 <Janar Sööt> http://opensource.org/licenses/mit-license.php
* Based on the work from @jhsa (http://openrcforums.com/forum/viewtopic.php?f=85&t=8471)
*
* I do not take any responsibility for this program. Use at your own risk.
___ ___
D5(A0) RESET PCINT5 B5 -| o |- VCC
D3(A3) ADC3 PCINT3 B3 -|atiny|- B2 PCINT2 SCK ADC1 D2(A1)
D4(A2) ADC2 PCINT4 B4 -|45/85|- B1 PCINT1 MISO D1
GND -|_/25_|- B0 PCINT0 MOSI D0
@mcmatrix
mcmatrix / sencha touch model
Created February 15, 2017 08:24 — forked from sagarpanda/sencha touch model
sencha touch tips
# add extra coloum for fullname in sencha touch model
Ext.define('Sencha.model.Employee', {
extend: 'Ext.data.Model',
config: {
fields: [
{name: 'firstName', type: 'string'},
{name: 'lastName', type: 'string'},
{
name: 'fullName',
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@mcmatrix
mcmatrix / gist:9e5357020394e408d8ccbe870c77e97f
Created January 15, 2017 16:42 — forked from rmetzler/gist:2947828
find all non UTF-8 encoded files
find . -type f | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" > utf8_fail
@mcmatrix
mcmatrix / nginx.conf
Last active March 31, 2016 19:17 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@mcmatrix
mcmatrix / .gitignore
Created March 10, 2016 10:48 — forked from reagent/.gitignore
Curses Windowing Example
demo
*.swp
@mcmatrix
mcmatrix / ext-lang-ja.js
Created February 10, 2016 08:52 — forked from sunvisor/ext-lang-ja.js
Japanese locale file for Sencha Touch 2
/**
* Japanese locale file for Sencha Touch 2
* File: ext-lang-ja.js
* Auther: sunvisor/Xenophy (hisashi.nakamura@xenophy.com)
* history: 2012-09-15 Prototype Version (test is not completed)
**/
Ext.onReady(function() {
var cm = Ext.ClassManager,
exists = Ext.Function.bind(cm.get, cm);
/*!
* jQuery Tiny Pub/Sub - v0.X - 11/18/2010
* http://benalman.com/
*
* Original Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*
* Made awesome by Rick Waldron
*
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/