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
@gourab5139014
gourab5139014 / create_hr_schema.sql
Last active November 14, 2025 00:42
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://tinyurl.com/oracle-hr-schema-postgres
--create tables
BEGIN;
CREATE TABLE regions
( region_id SERIAL primary key,
region_name VARCHAR(25)
);
CREATE TABLE countries
@dideler
dideler / bot.rb
Last active November 28, 2025 21:01
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
#
@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%; -'
});
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active December 3, 2025 19:19
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
@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)
]