Skip to content

Instantly share code, notes, and snippets.

View tjFogarty's full-sized avatar
🇮🇪

T.J. Fogarty tjFogarty

🇮🇪
View GitHub Profile
@antonioribeiro
antonioribeiro / gist:8838286
Last active August 29, 2015 13:56
Shared Hosting & PHP
| PHP | 5.4 | 5.5 | Mention date | PHP version information link
+----------------------+-----+-----+--------------+------------------------------------------------------------------------
| justHost.com | X | | 2013-09-06 | https://my.justhost.com/cgi/help/447
| NetworkSolutions | X | | 2013-03-17 | http://forums.networksolutions.com/index.php?showtopic=10601&mode=linearplus
| BlueHost | X | | Today? | https://my.bluehost.com/cgi/help/php-version
| HostGator | X | X | Today | https://support.hostgator.com/articles/hosting-guide/hardware-software/what-version-of-php-are-you-using
| 1&1 | X | X | Today | http://www.1and1.com/details-php-programming
| FatCow | X | | ? | http://www.mybestwebhostingsites.com/details/fatcow-wordpress/
| Hub | X | | 2012-04-17 | http://www.webhostinghub.com/help/news/archive-announcements/php-5-4
| G
function equalizeHeight(watch, target) {
var maxHeight = -1;
$(watch).each(function () {
maxHeight = maxHeight > $(this).outerHeight() ? maxHeight : $(this).outerHeight();
});
$(target).each(function () {
$(this).outerHeight(maxHeight);
});
}
@lounestor
lounestor / PrimeNumbers.java
Created November 22, 2012 00:13
Getting Prime Numbers
public class PrimeNumber {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
//specific prime and nonprime numbers in range
for (long i=1; i<50; ++i){
@rssilva
rssilva / karma-conf.js
Created May 6, 2016 18:31
Writing tests using Jasmine with Browserify, Babel and generating coverage with Istanbul
const istanbul = require( 'browserify-istanbul' )
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['browserify', 'jasmine'],
files: [
// 'js/**/*.js',
'js/utils/**/*.js',
'test/spec/*.js'
@danrcoull
danrcoull / Foundation6-TabToAccordion.js
Last active November 18, 2016 16:09
Foundation 6 - Convert Tabs to Accordion on small Screens.
## Description Add the below To any Foundation 6 theme and change the iniialUlClass to whatever your tab ul class is.
## Author : Daniel Coull <ttechitsolutions@gmail.com>
var tabsToAccordian = {
initialUlClass: '.easytabs',
accordian: null,
tabs:null,
@jonespen
jonespen / gist:8579542
Created January 23, 2014 14:41
equal height grid columns using susy and flexbox
@import "susy";
$total-columns : 7;
$column-width : 4em;
$gutter-width : 1em;
$grid-padding : $gutter-width;
$break : 12;
@mixin flex-span-columns($columns, $context: $total-columns, $padding: false, $from: $from-direction, $style: fix-static-misalignment()){
@include span-columns($columns, $context, $padding, $from, $style);
@therealklanni
therealklanni / using-git-guppy.md
Last active September 5, 2017 09:02
Supercharge your git hooks with gulp — Introducing git-guppy

Supercharge your git hooks with gulp

Introducing git-guppy

Automate your developer workflow with git-guppy. git-guppy allows you to add git-hooks to your project repository that are automatically installed when users clone and install your repository, so you won't have to worry about developers skipping essential workflow steps and bypassing your project guidelines.

Getting Started

So let's use a unit test scenario to illustrate an example. We're going to run unit tests before every commit (pre-commit hook) and reject the commit if the tests fail (giving the developer a chance to fix their tests before committing broken code).

@edenthecat
edenthecat / holler.md
Last active February 9, 2018 18:05
Alert me when a process is complete

Install terminal-notifier via homebrew: https://github.com/julienXX/terminal-notifier

If using zsh, create an alias: alias -g holler="echo 'holler' | terminal-notifier -sound default"

Store it in ./zshrc if you're happy with it!

Now you can run bundle exec rspec ; holler and it will make a notification that says "holler" when your tests are done.

@davidweatherall2
davidweatherall2 / z.scss
Created July 8, 2019 07:05
Z index sass helper function
// Z-index mapping: Correctly place your variable in the correct position based on what it should appear above and behind.
// Example usage: z-index: z(header);
$z-list: (
highest,
lowest
);
@function z($var) {
@mikeapr4
mikeapr4 / suspend.js
Created November 7, 2019 18:28
Suspend Mixin to stop/start component re-rendering
/* eslint-disable no-underscore-dangle */
export default (computedName) => ({
watch: {
// We add in a mechanism to delay re-render of this component
// depending on derived reactive data.
[computedName](val) {
const render = this._watcher;
if (render && val) {
this._suspendGetter = render.getter;
render.getter = () => { render.dirty = true; };