Skip to content

Instantly share code, notes, and snippets.

View realsonic's full-sized avatar
🐌
I may be slow to respond.

Mikhail realsonic

🐌
I may be slow to respond.
  • Russia, Krasnodar
  • 12:26 (UTC +03:00)
View GitHub Profile
@matthewzring
matthewzring / markdown-text-101.md
Last active July 24, 2024 06:37
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@erkyrath
erkyrath / prize.py
Last active November 28, 2017 15:38
IFComp prize pool math
#!/usr/bin/env python3
# A quick script to compute the IFComp cash prize pool distribution
# under various conditions.
#
# Options:
#
# -p POOL size of prize pool (default=4800)
# -e ENTRIES number of entries (default=60)
# -m MINPRIZE minimum prize (default=10)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 25, 2024 20:36
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@idear1203
idear1203 / Video.java
Last active May 12, 2022 15:34
Play .mp4 video using Java MediaPlayer for 5 seconds. After that, the video will be closed.
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.beans.property.DoubleProperty;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.media.Media;
import javafx.scene.media.MediaView;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.util.Duration;
@evantoli
evantoli / GitConfigHttpProxy.md
Last active July 20, 2024 03:29
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@galaydaroman
galaydaroman / skype-advert-fix.markdown
Last active April 27, 2018 12:05
Remove advert on skype (7.0 and greater)

2 Steps to remove adverting from Skype

1 STEP - Change Internet Options

Add advert's hosts into a block list on IE security tab

  • Open IE Internet Options -> Security tab
  • Choose Restricted sites and click Sites button
  • Add following urls:
@ryan-beckett
ryan-beckett / Terminal.java
Created January 12, 2012 06:02
A simple GUI-based non-fuctional terminal emulator
import java.awt.Font;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.InputMap;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.KeyStroke;
import javax.swing.SwingUtilities;