Skip to content

Instantly share code, notes, and snippets.

View tammytee's full-sized avatar

Tammy Robinson tammytee

  • Senior Software Engineer
  • Charlotte Metro Area
  • X @nadrarvre
View GitHub Profile
@tammytee
tammytee / publish-ghpages.md
Created December 10, 2021 19:05 — forked from tduarte/publish-ghpages.md
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
@tammytee
tammytee / angularjs-providers-explained.md
Created May 1, 2017 22:08 — forked from demisx/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@tammytee
tammytee / index.html
Last active February 12, 2017 00:36
This gist will allow you to stringify files retrieved from a FileList object using JSON.stringify().
<html>
<head>
<!-- other important tags go here -->
</head>
<body>
<input id="myFiles" type="file" multiple onchange="getFiles()" />
</body>
</html>
@tammytee
tammytee / tweets_json.php
Created December 31, 2015 18:33 — forked from planetoftheweb/tweets_json.php
This gist will let you retrieve a series of tweets using the twitter v1.1 API. There's a few steps you have to do before you use this. 1. First, you need to go to http://dev.twitter.com/apps and create a new application. 2. You'll also need to download this library. https://github.com/themattharris/tmhOAuth (You only need the tmhOAuth.php file) …
<?php
require 'tmhOAuth.php'; // Get it from: https://github.com/themattharris/tmhOAuth
// Use the data from http://dev.twitter.com/apps to fill out this info
// notice the slight name difference in the last two items)
$connection = new tmhOAuth(array(
'consumer_key' => '',
'consumer_secret' => '',
'user_token' => '', //access token