Skip to content

Instantly share code, notes, and snippets.

@ikbelkirasan
ikbelkirasan / writing-a-state-of-the-art-section.md
Created November 1, 2018 19:28
Writing the "Related Work" Section of a Paper/thesis

Writing the "Related Work" Section of a Paper/thesis

By: Chamin Morikawa (https://www.linkedin.com/pulse/writing-related-work-section-paperthesis-chamin-morikawa/)

For most students, writing about what they did on their own is not hard. But writing about others' work - which is what you have to do in the "State of the Art" or "Related Work" section - is quite hard for them. Here are a few guidelines to make this task a bit easier.

The Basics

Let's lay down our assumptions before continuing. I assume that you want to write a "Related Work" section for a research paper or a thesis that describes your approach to solve some problem. Let's also assume that there are other publications that attempt to solve the same problem, but the solutions in them are not perfect. Finally, let's assume that your approach has some difference when compared to those by others, and some improvement (faster, more accurate, easier to afford, etc.).

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 22, 2025 07:14
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@zhuhuilin
zhuhuilin / README.md
Created November 25, 2025 14:15
Enable macOS Internet Sharing without an actual internet connection. Three bash scripts using only native macOS commands - no installations required. Perfect for creating local WiFi networks for development, testing, and device-to-device communication.

macOS Internet Sharing Without Internet Connection

Three bash scripts to enable macOS Internet Sharing (Personal Hotspot) without requiring an actual internet connection. Perfect for creating local WiFi networks for development, testing, or device-to-device communication.

✨ Features

  • Zero dependencies - Uses only native macOS commands
  • Smart & safe - Preserves existing configurations
  • Reversible - Easy setup and teardown
  • State tracking - Remembers what was changed
@oxagast
oxagast / useful-one-liners.sh
Last active December 22, 2025 07:02 — forked from johnnypea/useful-one-liners.sh
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@ellsies
ellsies / Crossover.sh
Last active December 22, 2025 06:56
Crackover (Complete free version of crossover)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@sadikovi
sadikovi / db.scala
Last active December 22, 2025 06:54
Run SQL queries against a JDBC source in the notebook (for quick debugging, copy-paste the code, set url and props, and run queries)
object DB {
import org.apache.spark.sql._
import org.apache.spark.sql.types._
var url = "jdbc:sqlserver://..."
var props = new java.util.Properties()
var autoCommit = true
var spark = SparkSession.getActiveSession.get
def execute(conn: java.sql.Connection, query: String): DataFrame = {
@CyrusRoshan
CyrusRoshan / stringformat.go
Last active December 22, 2025 06:54
Some simple string formatting
// Input:
// go run stringformat.go "testing this"
// Output:
// **************
// *TeStInG ThIs*
// *EsTiNg tHiS *
// *StInG ThIs *
// *TiNg tHiS *
// *InG ThIs *