Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pahaz's full-sized avatar
🛠️
Yo ho ho

Pavel White pahaz

🛠️
Yo ho ho
View GitHub Profile
@LevShab
LevShab / Game.cs
Last active August 29, 2015 14:16
Game
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Game
{
class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Бетмен_против_ниндзя
{
class Program
{
@javiromero
javiromero / git_post_checkout_clean_pyc_and_empty_dirs.py
Last active August 8, 2017 22:20
Python scripts to check for new/missing Django migrations and Cleaning *.pyc and *. pyo for deleted *.py files from a repo & to remove any empty dir after every checkout
#!/bin/env python
"""
A hook to git that removes orphan files "*.pyc" and "*.pyo" for "*.py"
beeing deleted or renamed by git checkout. It also removes their empty parent
directories.
Place it to "my_local_repository/.git/hooks/post-checkout" and make it executable.
Nothing is cleaned for .py files deleted manually or by "git rm" etc.
Related to http://stackoverflow.com/q/1504724/448474
"""
import glob
@miohtama
miohtama / sheet.py
Last active July 29, 2022 11:47
Creating and sharing Google Sheet spreadsheets using Python
"""Google spreadsheet related.
Packages required: gspread, cryptography, oauth2client, google-api-python-client
For OSX see
* http://stackoverflow.com/a/33508676/315168
"""
import logging
@brendtumi
brendtumi / Diffie-Hellman.js
Created July 29, 2016 12:37
[nodejs][javascript] Diffie-Hellman key exchange - nodejs v6
"use strict";
const assert = require("assert");
const crypto = require("crypto");
let server = crypto.createDiffieHellman(1024);
let prime = server.getPrime();
console.log("Generate Alice's keys...");
let alice = crypto.createDiffieHellman(prime);
let alicePublicKey = alice.generateKeys("base64");
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 22, 2024 11:45
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites