Skip to content

Instantly share code, notes, and snippets.

View endocrimes's full-sized avatar

Danielle endocrimes

View GitHub Profile
@endocrimes
endocrimes / StyleGuide.md
Last active August 29, 2015 13:55
Objective-C style guide

My Objective-C Style guide

This style guide outlines the coding conventions that I try to stick to when writing Objective-C. I'm posting it here mostly as a brain dump and easy reference for the future, and to formalise it a little more.

It's pretty similar to that of the NYTimes. This document is mostly a customised version of that, you should go check theirs out!

Useful Resources

If you're looking to see some of the reasons behind some choices, or for something I haven't covered, look at the sites below, Apples documentation is pretty great.

### Keybase proof
I hereby claim:
* I am DanielTomlinson on github.
* I am DanToml (https://keybase.io/DanToml) on keybase.
* I have a public key whose fingerprint is 45C5 0C27 226E 1713 C7BD 5189 A065 D094 7C49 2423
To claim this, I am signing this object:

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

<html>
<head>
<title></title>
<script type="text/javascript">
function text(){
if(getCookie("hi") == "visited"){
document.getElementById("helloText").innerHTML = "Hello Again!";
}else{
setCookie("hi","visited",365);
}
@endocrimes
endocrimes / flare.json
Created November 22, 2012 17:10
Clustered Force Layout + Custom Gravity with Pan & Zoom, importing a Json file
{
"name": "Products",
"children": [
{
"name": "Cluster 1",
"children": [
{
"name": "Supplier: OHG",
"children": [
{
@endocrimes
endocrimes / flare.json
Created November 22, 2012 18:38
Clustered Force Layout + Custom Gravity with Pan & Zoom, importing a Json file
{
"name": "Products",
"children": [
{
"name": "Cluster 1",
"children": [
{
"name": "Supplier: OHG",
"children": [
{
@endocrimes
endocrimes / flare.json
Created November 23, 2012 17:01
Clustered Force Layout + Custom Gravity with Pan & Zoom, importing a Json file
{
"name": "Products",
"children": [
{
"name": "Cluster1",
"children": [
{
"name": "Supplier: OHG",
"children": [
{
@endocrimes
endocrimes / flare.json
Created November 25, 2012 19:04
D3 Stuff for Craig Reville
{
"name": "Products",
"children": [
{
"name": "Cluster1",
"children": [
{
"name": "Supplier: OHG",
"children": [
{
@endocrimes
endocrimes / Index.html
Created November 25, 2012 21:15
Clustered Force Layout + Custom Gravity with Pan & Zoom, importing a Json file & Canvas boundaries
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Data-Driven Documents</title>
<link rel="stylesheet" href="main.css">
<script src="http://d3js.org/d3.v3.min.js"></script>
@endocrimes
endocrimes / flare.json
Created November 27, 2012 17:28
Craig Reville New D3 JSON Format Force Graph with Pan And Zoom
[
{
"name": "Hotel Amfora",
"cluster": 4,
"supplier": "ADRIATICA",
"size": 24.61060620890301
},
{
"name": "Hotel Sol Garden Istra",
"cluster": 4,