Skip to content

Instantly share code, notes, and snippets.

View aK0nshin's full-sized avatar
:octocat:
Working from home

Alexander aK0nshin

:octocat:
Working from home
View GitHub Profile
@aK0nshin
aK0nshin / _pincode_bomb.ino
Last active January 19, 2020 01:34
Pincode bomb on arduino.
#include <LiquidCrystalRus.h>
#include <Keypad.h>
const byte KEYPADROWS = 4; // 4 строки
const byte KEYPADCOLS = 4; // 4 столбца
// --------------Пины--------------
// Инициализация дисплея
LiquidCrystalRus lcd(6, 7, 8, 9, 10, 11);
@aK0nshin
aK0nshin / index-files-from-folders.js
Last active June 20, 2019 13:29
Creates spreadsheet '_Index' with all the files and links to them in your google drive recursively.
function myFunction() {
var folderlisting = '_Index';
var folder = DriveApp.getRootFolder();
var ssfl = SpreadsheetApp.create(folderlisting);
sheet = ssfl.getActiveSheet();
sheet.appendRow(['Name','Url']);
@aK0nshin
aK0nshin / vending_machine.ino
Last active August 30, 2020 19:00
Vending Machine. Input code to get HIGH on pin.
#include <LiquidCrystalRus.h>
#include <Keypad.h>
const byte KEYPADROWS = 4; // 4 строки
const byte KEYPADCOLS = 4; // 4 столбца
const unsigned int LCDCHARWIDTH = 20;
const unsigned int LCDCHARHEIGHT = 4;
const unsigned int MAXSUCCESSCODES = 30;
@aK0nshin
aK0nshin / find_backups.py
Last active October 9, 2020 09:03
Find files and directories with date and return them as json.
#!/usr/bin/env python3.4.10
import argparse
import json
import os
import re
import time
from datetime import datetime, timedelta
from scandir import scandir