Skip to content

Instantly share code, notes, and snippets.

View frazras's full-sized avatar
Coding for honey 🍯

Rohan Smith frazras

Coding for honey 🍯
View GitHub Profile
frazras / fontsize.dart
Created July 26, 2020 02:24
An example of my broken shared preference flutter slider
import 'package:flutter/material.dart';
import 'package:flutter_html/style.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:shared_preferences/shared_preferences.dart';
class FontSizer extends StatefulWidget {
_FontSizerState createState() => new _FontSizerState();
frazras / email.txt
Created May 8, 2019 13:52
Cold email to bloggers
I am working on the Youtube of audio and would LOVE to have you onboard.
It is no doubt that audio is one of the fastest growing media for information sharing, but there exists only two major platforms: podcasts and audiobooks.
I am working on the third platform that falls in between both of these, this is article narration.
Wouldn't you like to reach the same the millions of people who, similarly to the book industry, would love to consume your blog in audio format?
Wouldn't you like to turn those listeners into paying subscribers to your content?
Wouldn't you like to do this with little to no time on your part?
I am proposing that you become a part of a few hand-picked bloggers we are choosing to launch this product.
frazras / .bash_profile
Created May 6, 2019 11:13 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
# Description: This file holds all my BASH configurations and aliases
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
frazras /
Created February 10, 2019 21:54
Use this script to remove the Javascript redirect hack that infects all your javascript files and redirects them to sites associated with or
#navigate to your web root and run this.
#I provide no warranty that it may not affect benign files but this worked for me
#so I though I should share it.
sudo grep -rl 'var _0x' . | xargs sudo sed -i -e 's/var _0x.*));//g'
rom 0ab617f74d84ab33e7309f8b567defa5f85c642d Mon Sep 17 00:00:00 2001
From: "Rohan A. Smith" <>
Date: Fri, 29 Apr 2016 10:23:49 -0400
Subject: [PATCH] AAS-463: Patch for missing image alt data
frazras / kuku-hack.js
Created May 15, 2015 16:17
I was too lazy to play the game at so I wrote this script to make it a bit easier. Just paste this in your browser console (right click - inspect element, console tab) then start the game
$("#box").click( function() {
frazras / event pseudocode
Created February 2, 2014 12:11
checks to see which event occurred first A or B
a_occured = false
b_occured = false
function event(source){
frazras / gist:8393696
Created January 13, 2014 02:19
note to self: This code will get all tweets authored by me that I favorited and select 15 random tweets then send them to the buffer API to be queued for tweeting
fav = api.GetFavorites(count=200)
size = len( [elem for elem in fav if elem.user.screen_name=='frazras'])
pp( [['NFKD', (elem.text)).encode('ascii','ignore')) for elem in fav if elem.user.screen_name=='frazras'][i] for i in random.sample(xrange(size), 15)])