Skip to content

Instantly share code, notes, and snippets.

View cisnky's full-sized avatar
:octocat:
Back on the grind

Anthony Onumonu cisnky

:octocat:
Back on the grind
View GitHub Profile
@guvener
guvener / tw-background-hex.md
Created April 30, 2022 08:46
Tailwind background colors HEX codes
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@macguru
macguru / gist:b7a01e3f0e9ae6f350d5
Last active May 10, 2020 20:58
Interface sizes a regular Universal app must support with iOS 11 when supporting all devices. Starts with iPhone 5 and goes up to iPad Pro 12.9".
COMPACT WIDTH (stacked view)
- 320 x 568 pt
-> iPhone 5, 5s
- 320 x 768 pt
-> iPad 9.7" Split Landscape 2/3 right
- 320 x 834 pt
-> iPad 10.5" Split Landscape 2/3 right
- 320 x 1024 pt
-> iPad 9.7" Split Portrait right
@chrisallick
chrisallick / uploadS3iOS.m
Created January 3, 2014 00:43
This will upload an image to s3 from ios using the amazon library
//#import <AWSS3/AWSS3.h>
//#import <AWSRuntime/AWSRuntime.h>
//import those in your .h file and
//add the awss3 and awsruntime framework from the client
//download from Amazon
AmazonS3Client *s3Client = [[AmazonS3Client alloc] initWithAccessKey:@"Key_Goes_here" withSecretKey:@"Secret_Goes_Here"];
NSString *imageName = [NSString stringWithFormat:@"%@.png", @"cpa"];
@psychemedia
psychemedia / wikiphilosophers.sparql
Last active March 11, 2019 16:59
Simple query for grabbing philosopher influence netwrok out of dbPedia
//Mapping philsopher influence netwroks
//via http://blog.ouseful.info/2012/07/03/visualising-related-entries-in-wikipedia-using-gephi/
CONSTRUCT{
?p <http://dbpedia.org/ontology/influenced> ?influenced.
} WHERE {
?p a
<http://dbpedia.org/ontology/Philosopher> .
?p <http://dbpedia.org/ontology/influenced> ?influenced.
} LIMIT 10000

Snow in canvas land

Other people's code is awful, and your own code from months previous counts as someone else's. With this and the festive spirit in mind, I dug up a canvas snow demo I made two years ago to see how bad my code really was.

Turns out the performance landscape has changed quite a bit, but after applying a couple of workarounds, best practices, and memory management, I got the demo running smoother than it ever did.

Ugh, I can't believe I just wrote "performance landscape". Anyway...

How does the demo work?

@pete-otaqui
pete-otaqui / bumpversion.sh
Created December 2, 2012 11:08
Bump a software project's VERSION, add the CHANGES, and tag with GIT
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.
@wrburgess
wrburgess / gist:3752973
Created September 19, 2012 23:17
Setting up Redis/Resque with Rails 3 on Local and Heroku
@Nutrox
Nutrox / Singleton.as
Created May 2, 2011 22:06
Easy Singleton Example
package
{
public class Singleton
{
static public const instance:Singleton = new Singleton();
public function Singleton()
{
if( instance )
{