Skip to content

Instantly share code, notes, and snippets.

@papachristoumarios
papachristoumarios / anonymize.sh
Last active February 6, 2024 10:45
Anonymize source code for blind review paper submission with sed
#!/bin/bash
# Anonymization of source code for blind review paper submission
# using sed to replace words with XXX. It also removes the .git
# directory in the anonymized project to avoid exposing any
# sensitive information about the author(s).
#
# Usage: anonymize.sh /path/to/project words_to_anonymize.txt
# words_to_anonymize.txt contains a word in each line
#
@dspinellis
dspinellis / lockf.py
Last active January 22, 2019 17:11
Lock a file using lockf(3)
#!/usr/bin/env python
#
# Lock through a file using fcntl(2), i.e. lockf(3), rather than flock(2)
# as used in flock(1)
#
# Example: lockf /var/lib/dpkg/lock apt-get update
#
# Copyright 2018 Diomidis Spinellis
#
# Licensed under the Apache License, Version 2.0 (the "License");
@avandeursen
avandeursen / LICENSE.md
Last active May 16, 2021 20:21
Reviewing for Elsevier

This little note is licensed under a Creative Commons CC0 License, meaning "No Rights Reserved". So you can reuse this note in whatever way you want, and there is no need to attribute me. Enjoy! :-)

@savarin
savarin / bplustree.py
Last active May 27, 2024 09:21
Python implementation of a B+ tree
"""Simple implementation of a B+ tree, a self-balancing tree data structure that (1) maintains sort
data order and (2) allows insertions and access in logarithmic time.
"""
class Node(object):
"""Base node object.
Each node stores keys and values. Keys are not unique to each value, and as such values are
stored as a list under each key.
@giannisdaras
giannisdaras / Device.java
Created April 14, 2018 11:17
The ultimate hack
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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
@georgepar
georgepar / ipynb2pdf.py
Created October 29, 2017 19:43
A script to convert an ipython notebook to pdf with support for greek language
#!/usr/bin/env python3
"""
Credits https://github.com/ivanychev/learning/blob/master/Python/ipynb2pdf/ipynb2pdf.py
Current version of Jupyter doesn't support pdf exporting when it comes to
greek language in the document. To fix this, current script has born.
It requires nbconvert as long as jupyter to be installed.
Author: Sergey Ivanychev
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 27, 2024 07:37
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

@rxaviers
rxaviers / gist:7360908
Last active July 27, 2024 17:59
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: