Skip to content

Instantly share code, notes, and snippets.

View salif's full-sized avatar

Salif Mehmed salif

View GitHub Profile
@touhonoob
touhonoob / unstar.js
Created May 23, 2015 19:16
Unstar All Github Starred Repos
var github = require('github');
var util = require('util');
const TOKEN = "";
const USER = "";
var g = new github({version: "3.0.0"});
g.authenticate({
type: "oauth",
@LeoIannacone
LeoIannacone / monokai-exteded.xml
Last active January 26, 2025 02:49
Monokai Extended - GtkSourceView Theme
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2014 Leo Iannacone <[email protected]>
This file was generated from a textmate theme named Monokai Extended
with tm2gtksw2 tool. (Alexandre da Silva)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
@jashkenas
jashkenas / semantic-pedantic.md
Last active November 22, 2024 04:13
Why Semantic Versioning Isn't

Spurred by recent events (https://news.ycombinator.com/item?id=8244700), this is a quick set of jotted-down thoughts about the state of "Semantic" Versioning, and why we should be fighting the good fight against it.

For a long time in the history of software, version numbers indicated the relative progress and change in a given piece of software. A major release (1.x.x) was major, a minor release (x.1.x) was minor, and a patch release was just a small patch. You could evaluate a given piece of software by name + version, and get a feeling for how far away version 2.0.1 was from version 2.8.0.

But Semantic Versioning (henceforth, SemVer), as specified at http://semver.org/, changes this to prioritize a mechanistic understanding of a codebase over a human one. Any "breaking" change to the software must be accompanied with a new major version number. It's alright for robots, but bad for us.

SemVer tries to compress a huge amount of information — the nature of the change, the percentage of users that wil

@fffaraz
fffaraz / projects.md
Last active May 9, 2024 18:11
Project Ideas List

http://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/

Text

Reverse a String Enter a string and the program will reverse it and print it out.

Pig Latin Pig Latin is a game of alterations played on the English language game. To create the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed (Ex.: "banana" would yield anana-bay). Read Wikipedia for more information on rules.

@brucelawson
brucelawson / banned websites
Last active October 25, 2022 12:34
Banned websites in various countries
China https://en.wikipedia.org/wiki/List_of_websites_blocked_in_China
Pakistan https://en.wikipedia.org/wiki/Internet_censorship_in_Pakistan, https://www.usenix.org/conference/foci13/workshop-program/presentation/nabi
Russia http://eais.rkn.gov.ru, https://en.wikipedia.org/wiki/Russian_Internet_blacklist
Turkey http://engelliweb.com, you can check any website from gov. website (eekg.tib.gov.tr)
UK https://en.wikipedia.org/wiki/Websites_blocked_in_the_United_Kingdom
@hawkw
hawkw / HawkLang.md
Last active January 6, 2025 01:44
Random ideas for Programming Language Syntax I'd Like To See. Using Python syntax highlighting for the code snippets because some syntax is similar enough that python-style highlighting improves readability.

Thoughts and Rationale

This isn't a comprehensive language design, it's just ideas for syntactical constructs I'd really like to see some day. It'd probably be some kind of object/functional hybrid a la Scala - I really like the recent trend of "post-functional" languages that take a lot of ideas/influence from functional programming, but aren't fascist about it, or so scary that only math Ph.Ds can learn them. The idea is to fuse OOP and FP into a language which gives you a high level of expressiveness and power, but is actually useable for Getting Real Things Done.

@kerimdzhanov
kerimdzhanov / random.js
Last active February 26, 2025 22:12
JavaScript: get a random number from a specific range
/**
* Get a random floating point number between `min` and `max`.
*
* @param {number} min - min number
* @param {number} max - max number
* @return {number} a random floating point number
*/
function getRandomFloat(min, max) {
return Math.random() * (max - min) + min;
}
@dangkhoasdc
dangkhoasdc / archlinux_install.sh
Last active March 18, 2021 09:20
Things to do after install Arch Linux
#!/usr/bin/env bash
# Things to do after install ArchLinux (2012.12.01)
pacman --noconfirm -S sudo
# Enabled archlinuxfr repo
arch=$(uname -m)
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
echo "" >> /etc/pacman.conf
echo "[archlinuxfr]" >> /etc/pacman.conf
@dgellow
dgellow / evdev.xml
Created July 3, 2013 07:07
Custom /usr/share/X11/xkb/rules/evdev.xml to add my custom bepow layout to gnome 3 settings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xkbConfigRegistry SYSTEM "xkb.dtd">
<xkbConfigRegistry version="1.1">
<modelList>
<model>
<configItem>
<name>pc101</name>
<description>Generic 101-key PC</description>
<vendor>Generic</vendor>
</configItem>
@deekayen
deekayen / 1-1000.txt
Last active April 20, 2025 12:43
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that