Skip to content

Instantly share code, notes, and snippets.

@greg5green
greg5green / gist:9d0fb9161abfbeffa894
Created October 9, 2014 01:14
Lo-Dash Debounce Example
function resizeFunction() {
// code here
}
$(window).on('resize', _.debounce(resizeFunction, 100));
@greg5green
greg5green / gist:bbbe1579feacb287b3e3
Created January 28, 2015 02:38
gulp-less + watch
var less = require('gulp-less');
gulp.task('less', function() {
gulp.src('./home-of-less-files/**/*.less')
.pipe(less({))
.pipe(gulp.dest('./destination-directory'));
});
gulp.task('watch', function() {
gulp.watch('./home-of-less-files/**/*.less', ['less']);
import _ from 'lodash';
let records = Symbol('records'),
find = Symbol('find');
class TallyItemModel {
constructor() {
this[records] = [];
}
@greg5green
greg5green / gist:1d189df97eb3d81a5343
Created August 7, 2015 20:21
2012 Buffalo Bills that are still on the roster as of August 7th
Quarterbacks
Running backs
Wide receivers
81 Marcus Easley
15 Chris Hogan
Tight ends
@greg5green
greg5green / .eslintrc
Created August 12, 2016 03:57
React ESLint Config
{
"parser": "babel-eslint",
"rules": {
/**
* Strict mode
*/
// babel inserts "use strict"; for us
"strict": [2, "never"], // http://eslint.org/docs/rules/strict
/**
@greg5green
greg5green / article.md
Created February 22, 2019 18:45
Cover Story: So, it's Apple's land — now what?

A company connected to Apple has no intention of offloading a swath of land it’s recently acquired near Research Triangle Park.

That’s as Apple – at least right now – has no immediate plans to build on the 281-acre site, and is instead watching North Carolina’s political landscape as it expands in Texas, insiders say.

In the past two months, after news of the land sale became public, at least two sources close to the transaction confirmed that the sale was completed on behalf of Apple. What’s more, given Apple’s Austin, Texas, announcement, economic developers were told not to expect any big expansion or relocation announcement in RTP any time soon.

Apple officials in Cupertino, California, could not be reached for comment.

As North Carolina officials keep classifying Apple as an active project for the region, public records show the state – at least when it comes to the trophy prize of the $1 billion project announced in Austin - may not have been a real contender in the effort’s final months.