Skip to content

Instantly share code, notes, and snippets.

View BlueSlimee's full-sized avatar

Blue Slime BlueSlimee

View GitHub Profile
@BlueSlimee
BlueSlimee / README.md
Last active January 4, 2023 01:42
não use ts

TypeScript vale a pena?

TypeScript extends JavaScript by adding types.

By understanding JavaScript, TypeScript saves you time catching errors and providing fixes before you run code.

Parece tentador, não? Só que se você já usou TypeScript, você sabe que não é bem assim. O TypeScript pode até "ajudar" em projetos grandes, mas no final, só atrapalha. Vou explicar o por quê.

@rothomp3
rothomp3 / swift-buffer-example.swift
Last active January 1, 2020 17:09
Swift example of writing to memory buffer
let bitmapBuffer = UnsafePointer<UInt8>.alloc(Int(height * width * 4))
let pixelNumber = (x * 4) + (y * width * 4)
bitmapBuffer[pixelNumber + 3] = 255 // Alpha
bitmapBuffer[pixelNumber + 2] = redValue
bitmapBuffer[pixelNumber + 1] = greenValue
bitmapBuffer[pixelNumber + 0] = blueValue