Skip to content

Instantly share code, notes, and snippets.

View erkantaylan's full-sized avatar
🍇

erkan erkantaylan

🍇
  • TURKEY
  • 14:40 (UTC +03:00)
View GitHub Profile
@vikilpet
vikilpet / voidtools-everything-mobile-css.md
Last active February 5, 2022 11:28
Mobile-friendly CSS for VoidTools Everything

Well it's far from perfect and not responsive, but it meets my needs.

Just set up the internal HTTP server and replace main.css with that:

* {

padding: 0px;

@erkantaylan
erkantaylan / dotnet.gitignore
Last active January 29, 2020 23:24
gitignore for dotnet environment (visual studio / gitflow / jetbrains products / mono / xamarin)
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.suo
*.user
*.userosscache
@IanColdwater
IanColdwater / twittermute.txt
Last active November 17, 2024 02:37
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@Joe4evr
Joe4evr / AudioModule.cs
Last active October 18, 2023 15:32
D.Net 1.0 audio example
using System.Threading.Tasks;
using Discord.Commands;
public class AudioModule : ModuleBase<ICommandContext>
{
// Scroll down further for the AudioService.
// Like, way down
private readonly AudioService _service;
// Remember to add an instance of the AudioService

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@wojteklu
wojteklu / clean_code.md
Last active November 18, 2024 11:09
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

“Fools ignore complexity; pragmatists suffer it; experts avoid it; geniuses remove it.”

– Alan Perlis (Turing Award #1, ALGOL)


“Computer Science is the first engineering discipline in which the complexity of the objects created is limited solely by the skill of the creator, and not by the strength of raw materials.”

@daveyarwood
daveyarwood / radiohead-chords.alda
Created August 6, 2016 15:14
An exercise in randomly generated "Radiohead chord" sequences
# Ben Levin's "Radiohead Chord Generator" video:
# https://www.youtube.com/watch?v=iYU_2hfFPM0
# Rules:
#
# From a MAJOR chord (e.g. C), you can:
# - move to the parallel minor (Cm)
# - move down to the relative minor (Am)
# - move up 1/2 step to a minor chord (Dbm)
@pantox
pantox / npm.lua
Created April 1, 2016 06:29
remove (<invalid_name>@<invalid_version>) from cmder promt when there is no name and version field in your package.json file
function npm_prompt_filter()
local package = io.open('package.json')
if package ~= nil then
local package_info = package:read('*a')
package:close()
local package_name = string.match(package_info, '"name"%s*:%s*"(.-)"')
or ""
local package_version = string.match(package_info, '"version"%s*:%s*"(.-)"')
or ""
@miratcan
miratcan / extract_palette.py
Last active March 18, 2022 13:12
Extracts number palette data from videos and generates art from them.
import random
import subprocess
from collections import namedtuple
from datetime import timedelta
from math import sqrt
import argparse
from os.path import join, exists
from os import getcwd, mkdir
from ffprobe import FFProbe
from pytube import YouTube