Skip to content

Instantly share code, notes, and snippets.

View FootballFan141's full-sized avatar
👋
Hey!

Travis FootballFan141

👋
Hey!
View GitHub Profile
@vergissberlin
vergissberlin / ios-8-web-app.html
Last active May 31, 2017 12:00 — forked from tfausak/ios-8-web-app.html
With placeholdit dummy picture for live testing your devices
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
<!-- Allow web app to be run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable"
content="yes">
<!-- Make the app title different than the page title. -->
@malatx
malatx / sample-dash.php
Last active January 28, 2018 06:21
Sample Indie App Dashboard via AppFigures Data
<?php
// This is sample code to draw some of the charts I blogged about here:
// https://medium.com/ios-os-x-development/keeping-your-wits-as-an-indie-app-developer-3b5b14428e1f
//
// A few disclaimers:
// 1. This assumes you have at least 30 days of sales data in order to draw the Trailing 7 Days Chart
// 2. This assumes you have over 52 consecutive weeks of data in order to draw the Trailing Year Chart
// 3. I don't really know PHP. Everything this does, I had to look it up while writing it. If you actually know PHP, sorry. There are surely better ways.
//
// the results of this PHP script is intended to be drawn using the Flot library.
// Originally used on https://nookipedia.com/wiki/Fish/Animal_Crossing:_Wild_World to extract fish data
returnedObj = '[\n';
function scrapeFish() {
for (var i = 0; i < 56; i++) {
fishName = document.body.children[7].children[0].children[0].children[1].children[0].children[1].children[1].children[4].children[3].children[0].children[2].children[0].children[1].children[i].children[1].children[0].innerHTML;
returnedObj += `\t{'task_name': '${fishName}', 'task_complete': false},\n`;
}
returnedObj += '\n]';
return returnedObj;
}

Installed plugins for Sublime Text 3

2017.05.20 update.

  • A File Icon
  • AdvancedNewFile
  • All Autocomplete
  • ApacheConf.tmLanguage
  • AutoFileName
  • Babel
@tibbon
tibbon / sublimehints.md
Created October 31, 2013 18:36
Sublime Hints of the Day

David's Sublime Hints

Hint 1 - Set default indentation to 2 spaces

A tab size of 2 almost always looks better and can fit more on screen

  • Click on Sublime Text -> Preferences -> Settings - User
  • Alter the file to add "tab_size: 2" and save it

Mine looks like the following:

@corenominal
corenominal / API Key Generator.markdown
Created December 12, 2015 22:40
API Key Generator
@azat-co
azat-co / express.js
Last active August 19, 2018 03:30
Tutorial: REST API with Node.js and MongoDB using Mongoskin and Express.js
var express = require('express')
, mongoskin = require('mongoskin')
var app = express()
app.use(express.bodyParser())
var db = mongoskin.db('localhost:27017/test', {safe:true});
app.param('collectionName', function(req, res, next, collectionName){
req.collection = db.collection(collectionName)
@dbilovd
dbilovd / ide-plugins.md
Last active February 1, 2019 20:52
IDE Plugins
@mseemann
mseemann / reactiveform.component.ts
Last active October 13, 2019 06:40
Reactive Forms Example(ts)
import {
Component,
OnInit
} from '@angular/core';
import { flyInOutTrigger } from './../animations/flyInOutTrigger-animation';
import { hostConfig } from './../animations/flyInOutTrigger-animation';
import {
FormGroup,
FormControl,
Validators,
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 13, 2011 12:43
ptrace-fix (was in kernel GIT repo, but removed)
From f1bafcca7344c48373b8a2c4efe88ae9cc893eea Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.dilek@gmail.com>
Date: Mon, 11 Apr 2011 23:56:10 +0200
Subject: [PATCH 1/2] x86, clang: Remove asmregparm from
syscall_trace_{enter,leave}()