Skip to content

Instantly share code, notes, and snippets.

Bradyn Glines glinesbdev

Block or report user

Report or block glinesbdev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am glinesbdev on github.
  • I am glinesbdev ( on keybase.
  • I have a public key ASBRMmmp2RsEJRGIGVCeIKU77U0iUem-U2Wl-blyTxikCwo

To claim this, I am signing this object:

glinesbdev /
Last active Aug 26, 2019
Basic Pig Latin Translator - Rust
use std::{
io::{prelude::*, BufReader},
mod pig_latin;
fn main() {
let file = File::open("text.txt").expect("Can't open file.");
let file_size = file.metadata().unwrap().len();
glinesbdev / fib.asm
Created Aug 22, 2019
MacOS Assembly - Fibonacci
View fib.asm
global _main
extern _printf
section .text
push rbx ; We have to save this since we use it
mov ecx, 90 ; ecx will countdown to 0
xor rax, rax ; rax will hold the current number
xor rbx, rbx ; rbx will hold the next number
glinesbdev / triangle.asm
Created Aug 22, 2019
MacOS Assembly - Triangle
View triangle.asm
global start
section .text
mov rdx, output ; rdx holds address of next byte to write
mov r8, 1 ; initial line length
mov r9, 0 ; number of stars written on line so far
mov byte [rdx], '*' ; write single star
View example.dart
class PostPage extends StatelessWidget {
const PostPage({
Key key,
}) : super(key: key);
final Post post;
Widget build(BuildContext context) {
glinesbdev / Main.elm
Created May 7, 2019
Elm Msg Chain Madess
View Main.elm
SubmitMessage ->
( model
, getTime
GotTime time ->
( { model | timeSent = Time.posixToMillis time }
, generateRandomId
glinesbdev / Main.elm
Last active May 1, 2019
Cmd.batch Example
View Main.elm
type Msg
= UrlRequested Browser.UrlRequest
| UrlChanged Url.Url
| NameEntered String
| NameSubmitted
| MessageEntered String
| MessageSubmitted
| GenerateRandomId String
generateRandomChatId : Cmd Msg
View Css.Elm
gridItem :
-> (List (Attribute msg) -> List (Html msg) -> Html msg)
-> List (Attribute msg)
-> List (Html msg)
-> Html msg
gridItem item html attributes children =
html (gridItemAttributes item ++ attributes) children
glinesbdev / Main.elm
Created Apr 25, 2019
Elm Type vs Type Alias
View Main.elm
type alias Grid =
{ gridTemplateColumns : Maybe GridTemplateColumns
, gridTemplateRows : Maybe GridTemplateRows
, gridTemplateArea : Maybe GridTemplateArea
, gridTemplate : Maybe GridTemplate
type Grid
= GridTemplateColumn (Maybe String)
glinesbdev / Main.elm
Created Apr 25, 2019
Elm String of Strings
View Main.elm
module Main exposing (main)
import Browser
import Html exposing (Html, button, div, text)
import Html.Events exposing (onClick)
type alias Model =
You can’t perform that action at this time.