Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Coding for honey 🍯

Rohan Smith frazras

💭
Coding for honey 🍯
View GitHub Profile
@frazras
frazras / fontsize.dart
Created Jul 26, 2020
An example of my broken shared preference flutter slider
View fontsize.dart
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 {
@override
_FontSizerState createState() => new _FontSizerState();
}
@frazras
frazras / email.txt
Created May 8, 2019
Cold email to bloggers
View email.txt
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
frazras / .bash_profile
Created May 6, 2019 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
View .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
frazras / unhack.sh
Created Feb 10, 2019
Use this script to remove the Javascript redirect hack that infects all your javascript files and redirects them to sites associated with uncontinuer.tk or getmyfreetraffic.com
View unhack.sh
#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'
View fix_image_alt_description.patch
rom 0ab617f74d84ab33e7309f8b567defa5f85c642d Mon Sep 17 00:00:00 2001
From: "Rohan A. Smith" <rohan@bluespark.com>
Date: Fri, 29 Apr 2016 10:23:49 -0400
Subject: [PATCH] AAS-463: Patch for missing image alt data
@frazras
frazras / kuku-hack.js
Created May 15, 2015
I was too lazy to play the game at http://106.186.25.143/kuku-kube/en-3/ 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
View kuku-hack.js
$("#box").click( function() {
$('#box').children().filter(function(){
if($('#box').children().first().css('backgroundColor')!=$(this).css('backgroundColor')){
$(this).css('background-color','lime');
$(this).css('border-width','5px');
$(this).css('border-color','red');
}
});
});
@frazras
frazras / event pseudocode
Created Feb 2, 2014
checks to see which event occurred first A or B
View event pseudocode
a_occured = false
b_occured = false
function event(source){
if(source==A){
if(b_occured==false){
a_occurred=true
}
}else{
if(a_occured==false){
@frazras
frazras / gist:8393696
Created Jan 13, 2014
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
View gist:8393696
fav = api.GetFavorites(count=200)
size = len( [elem for elem in fav if elem.user.screen_name=='frazras'])
pp( [[profile.updates.new(unicodedata.normalize('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)])
You can’t perform that action at this time.