Skip to content

Instantly share code, notes, and snippets.

View andreisfedotov's full-sized avatar
🧘‍♂️
Keep moving forward!

Andrei Fedotov andreisfedotov

🧘‍♂️
Keep moving forward!
View GitHub Profile
@midu
midu / konami.coffee
Last active November 1, 2019 11:29
Watch for the konami code on your page
userInputs = []
konami = [
38, 38, # ↑ ↑
40, 40, # ↓ ↓
37, 39, # ← →
37, 39, # ← →
66, 65 # B A
16, 13 # ⇧ ↩ (shift, enter)
]
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active November 16, 2024 11:48
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@natergj
natergj / percenatage formatting
Created February 13, 2018 00:12
display cells as percentage in excel4node
var xl = require('excel4node');
var wb = new xl.Workbook();
var ws = wb.addWorksheet('test');
// Create a reusable style
var style = wb.createStyle({
numberFormat: '#.00%; -#.00%; -'
});
@dideler
dideler / bot.rb
Last active November 9, 2024 11:37
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@gourab5139014
gourab5139014 / create_hr_schema.sql
Created July 3, 2018 16:45
Script to create Oracle XE's HR schema in Postgres
-- Best used for learning purposes. Original developer also has an ER diagram available at https://dbseminar.r61.net/node/32
--create tables
BEGIN;
CREATE TABLE regions
( region_id SERIAL primary key,
region_name VARCHAR(25)
);
CREATE TABLE countries