git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery('ul.tab-nav li').click(function(e){ | |
var tab_id = jQuery(this).attr('id'); | |
jQuery('ul.tab-nav li').removeClass('active'); | |
$(this).addClass('active'); | |
jQuery('.tab-container div.tab').hide(); | |
jQuery('.tab-container div#' + tab_id + '-tab').show(); | |
}); |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Button actionLauncherButton = (Button) findViewById(R.id.action_launcher_button); | |
actionLauncherButton.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
// Check Action Launcher is installed | |
Intent intent = getPackageManager().getLaunchIntentForPackage("com.actionlauncher.playstore"); | |
if (intent != null) { | |
// TODO BY YOU: set this package name as appropriate. Eg "kov.theme.stark" | |
String yourPackageName = ; |
<?php | |
//The content which should be parsed | |
$content = '<p>Hello, my name is John an my age is [calc-age day="4" month="10" year="1991"].</p>'; | |
$content .= '<p>Hello, my name is Carol an my age is [calc-age day="26" month="11" year="1996"].</p>'; | |
//The array with all the shortcode handlers. This is just a regular associative array with anonymous functions as values. A very cool new feature in PHP, just like callbacks in JavaScript or delegates in C#. | |
$shortcodes = array( | |
"calc-age" => function($data){ | |
$content = ""; | |
//Calculate the age |
#Jekyll Markdown Quick Reference
####Write in simply awesome markdown
layout: post
title: Markdown Style Guide
---
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.graphics.OrthographicCamera; | |
import com.badlogic.gdx.graphics.g2d.BitmapFont; | |
import com.badlogic.gdx.graphics.g2d.SpriteBatch; | |
import com.badlogic.gdx.utils.Disposable; | |
import com.badlogic.gdx.utils.TimeUtils; | |
/** | |
* A nicer class for showing framerate that doesn't spam the console | |
* like Logger.log() |
{ | |
"added_words": | |
[ | |
"Mockup", | |
"plugins", | |
"coffeescript", | |
"sourcemaps", | |
"html", | |
"plugin", | |
"init", |
function isOnScreen(elem) { | |
// if the element doesn't exist, abort | |
if( elem.length == 0 ) { | |
return; | |
} | |
var $window = jQuery(window) | |
var viewport_top = $window.scrollTop() | |
var viewport_height = $window.height() | |
var viewport_bottom = viewport_top + viewport_height | |
var $elem = jQuery(elem) |
These instructions will guide you through the process of setting up a wildcard SSL for your local virtualhosts for offline development. Most importantly, this configuration will give you the happy, green lock in Chrome.
These instructions have only been tested on Mac OS Sierra using the pre-installed Apache and PHP versions. These instructions also assume you have virtualhosts set up locally already.
##jQuery Best Coding Practices and Standards
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-2.1.4.min.js" type="text/javascript"><\/script>')</script>
<!-- Second line is for backup of the first one -->