Skip to content

Instantly share code, notes, and snippets.

@NordicGamerFE
NordicGamerFE / performancemods12.md
Last active May 14, 2024 01:36
Performance mods 1.12

Performance Mods

A list of performance-enhancing mods for 1.12.x versions.

Any suggestions/complaints?
Join our discord or use the gist comments.

Mods marked as "Dangerous" might be unstable, and cause some unexpected behaviour.

Home

@androidfred
androidfred / progressively_more_detail.md
Last active January 8, 2024 20:23
This "progressively more detail" image loading algorithm can help you do and learn anything

This "progressively more detail" image loading algorithm can help you do and learn anything

Summary, TLDR

When doing or learning pretty much anything, the strategy where you tackle the whole thing all at once, but starting with a rough outline and then incrementally revisiting everything to go into increasingly more detail, is often more effective than doing things perfectly little by little and missing the big picture. (pun intended)

Longer version

Back in the days of dial up internet, which was very limited in speed and capacity compared to modern internet connections, images on a web page could take very long to load. There were different strategies for dealing with that problem, and if you look hard enough (pun intended again), they can reveal some things about how to do and learn stuff.

@STadas
STadas / me_irl.md
Last active July 15, 2023 07:58
I want to keep this in case it goes down at some point

Original posted on January 7, 2015 by Anoop Dixith: http://www.theunrealtimes.com/2015/01/07/govt-bans-stackoverflow-com-developer-takes-6-hours-to-swap-2-variables/ (see? I knew it would)

Govt bans StackOverflow.com; Developer takes 6 hours to swap 2 variables

Bangalore based software developer Rossell Bhargav, who works for HashInclude Technologies, had the worst day of his career after he found out that the company’s ISP provider had banned StackOverflow.com (a question and answer site for programmers) due to “regulations from the competent authority” (read Department of Telecom).

“I wanted to swap two variables”, said Bhargav, “but man it turned to be a daunting task! I’m not kidding, I’m a senior software developer here but we are all so accustomed to StackOverflow that we hardly write code without copy-pasting snippets from there. But I didn’t know what to do when I found that it was blocked!”

“I thought I’ll ask my overseas friends who could open StackOverflow from there and let me know the code

@mcpower
mcpower / aoc-tips.md
Last active March 27, 2024 03:28
Tips for getting on the Advent of Code leaderboard

Hi, I'm mcpower. I've done Advent of Code seriously for two years now in Python, placing 9th in 2018 and 12th in 2017. This year, I'm taking a break from aiming for the leaderboard - while it's fun and all, it is a bit stressful at times (the good kind of stress, though!). As such, I'd like to share a few tips for anyone wanting to aim for the leaderboard.

This is everything that worked for me. Your mileage may vary, though - don't take this as gospel, see what works for you.

Go fast

Go fast.

@Pathoschild
Pathoschild / stardew-mod-recommendations.md
Last active June 14, 2024 13:05
Stardew Valley mod recommendations

Here are the mods I recommend. These are all compatible with the latest versions of SMAPI and Stardew Valley on Linux/macOS/Windows. See the player's guide to using mods if you're interested.

Quality of life

I think the best mods are those which improve the game while maintaining its balance, lore, and style.

  • AutoGate
    Gates open automatically when you approach and close behind you.

  • Better Sprinklers Plus
    Customise the sprinkler radius, with a proportional change to their cost. If you're willing to mine all the ores you'll need, that makes the basic sprinklers useful early in the game and lets you do more than just watering crops every day.

@mbohdziul
mbohdziul / monokai_color_scheme.txt
Created April 13, 2017 05:59
Monokai color scheme
monokai-blue-light #89BDFF
monokai-gray #595959
monokai-gray-darker #383830
monokai-gray-darkest #141411
monokai-gray-lightest #595959
monokai-gray-light #E6E6E6
monokai-green #A6E22A
monokai-green-light #A6E22E
monokai-grey-dark #272822
monokai-magenta #F92672
@joepie91
joepie91 / vpn.md
Last active June 29, 2024 17:36
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@elmogallen
elmogallen / user.lua
Last active December 15, 2023 13:04
My user settings for ZeroBrane Studio: makes it closer to Sublime Text and Lua Glider, keeps shortcut keys consistent as I go back and forth from Windows to OS X, adjusts the default settings, adds a "well" for the line numbers and code folding arrows, and generally makes some UI elements more subtle (code folding, indent guides).
--[[--
Use this file to specify User preferences.
Review [examples](+/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/cfg/user-sample.lua) or check [online documentation](http://studio.zerobrane.com/documentation.html) for details.
--]]--
editor.fontsize = 14
editor.usewrap = false
editor.tabwidth = 4
editor.indentguide = true
editor.fold = true
editor.foldtype = 'arrow'
@christiangenco
christiangenco / hn_impersonator.rb
Created October 7, 2014 18:46
Impersonate your favorite HN commenter
require 'http'
require 'json'
require 'peach'
require 'gabbler'
require 'pry'
USERNAME = "patio11"
unless File.exists?("comments.txt")
def get_json(url)