Skip to content

Instantly share code, notes, and snippets.

View yigitozgumus's full-sized avatar
🎯
Focusing

Yiğit Özgümüş yigitozgumus

🎯
Focusing
View GitHub Profile
@tfcporciuncula
tfcporciuncula / PdfDownloader.kt
Last active September 8, 2022 06:41
PdfDownloader.kt
class PdfDownloader @Inject constructor(
private val context: Context,
private val yourApi: YourApi
) {
private class DownloadException(message: String, cause: Throwable? = null) : RuntimeException(message, cause)
suspend fun download(url: String, fileName: String): String = withContext(Dispatchers.IO) {
val file = createFile(fileName)
@bigmountainstudio
bigmountainstudio / BigMountainStudio (Dark).xccolortheme
Last active June 18, 2024 15:52
Xcode Theme: BigMountainStudio (Dark)
<!-- Add this file to: ~/Library/Developer/Xcode/UserData/FontAndColorThemes -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.901961 0.831373 0.639216 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>SFMono-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
WEBGL // p5 WEBGL rendering mode.
createCanvas(w, h, renderer) // Creates a 3D canvas (if renderer is WEBGL).
// Primitives
plane(width, height) // Creates a plane in 3D space. Equivalent to rect() in the default rendering mode.
plane(width, height, detailX, detailY) // Creates a plane in 3D space with the number of triangle subdivisions specified.
box(width) // Creates a cube in 3D space.
box(width, height, depth) // Creates a cuboid in 3D space.
box(width, height, depth, detailX, detailY) // Creates a cuboid in 3D space with triangle subdivisions.
sphere(radius) // Creates a sphere in 3D space.
@staltz
staltz / introrx.md
Last active June 18, 2024 06:15
The introduction to Reactive Programming you've been missing
@pksunkara
pksunkara / config
Last active June 17, 2024 13:50
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta