Skip to content

Instantly share code, notes, and snippets.

View neojp's full-sized avatar

Joan P. neojp

View GitHub Profile
@neojp
neojp / gist:9006936
Created February 14, 2014 19:02
Query for upcoming posts on "The Events Calendar" WordPress plugin
<?php
// https://github.com/moderntribe/the-events-calendar/blob/master/lib/tribe-event-query.class.php
$q = TribeEventsQuery::getEvents(array(
'eventDisplay' => 'upcoming',
'posts_per_page' => 3
));
var_dump($q);
@neojp
neojp / jquery-gsap-easings.js
Created May 29, 2014 18:50
Let jQuery use Greensock's Easings
var jQueryGsapEasings = function() {
var _createEase = function(ease) {
return function(p) {
return ease.getRatio(p);
};
},
_easeMap = Ease.map || {};
if ($.easing) {
for (var p in _easeMap) {
@neojp
neojp / _foundation_variables.scss
Created June 23, 2014 04:05
Import Foundation 5 variables and don't print any CSS classes
// do not print foundation css classes
$include-html-classes: false;
$modules: ("global");
// import foundation variables
@import "foundation/components/global";
@neojp
neojp / foundation-globals.scss
Created June 23, 2014 04:56
Foundation 5. Reestablish font inheritance using the SCSS $font-size variables
// Convert units
// Eg.
// font-size: convert-unit(16rem, em);
// >> font-size: 16em;
//
// font-size: convert-unit(16em, rem);
// >> font-size: 16rem;
//
// font-size: convert-unit(16em, px);
// >> font-size: 16rpx;
@neojp
neojp / application.template.hbs
Created February 24, 2016 22:53
link-to nested routes bug
<h1><code>\{{link-to}}</code> nested routes bug</h1>
<p>When using nested routes and the same segment names (eg <code>:slug</code>) in all nested paths, the \{{link-to}} helper doesn't build the right URL.</p>
<h2>Bug Demo:</h2>
<h3>Router:</h3>
<pre>Router.map(function() {
this.route('page', { path: '/page/:slug' }, function() {
this.route('child', { path: '/:slug' });
});
});</pre>
@neojp
neojp / EmberJS2019.md
Created June 18, 2019 06:55
My thoughts on the Ember.js roadmap for 2019 #EmberJS2019

My thoughts on the Ember.js roadmap for 2019 #EmberJS2019

Introduction

Coming from the old jQuery days I used to hear from core members about how interesting the Amber.js framework was. Quickly enough it became Ember.js and I jumped-in head-on.

I've never been "active" in the community, but whenever an SPA project pops up I have always pushed for Ember to be used as the an essential part of the project because it is the easiest to use, and most reliable framework to work with as a team. Conventions over configuration are that good.

Now with this Call for Blog Posts, I present you with a few ideas I would love to see in the plausible future.

Embroider and Ember CLI tools

Keybase proof

I hereby claim:

  • I am neojp on github.
  • I am neojp (https://keybase.io/neojp) on keybase.
  • I have a public key ASA2expEMIVDo5TZDNUvyKHne1vBL5kGVeJDhBM9COrNpwo

To claim this, I am signing this object:

sudo apt-get update
sudo apt-get install mysql-server -y
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
rbenv install 2.5.1
gem install bundler
gem install rails -v 5.0.7
@neojp
neojp / components.search-form\.hbs
Created July 3, 2020 08:34
debounced-input-demo
<div class="Search">
<form class="Search-form" {{on "submit" this.search}}>
<p>
<label>
<b class="u-visuallyHidden">Search</b>
<Input
type="search"
class="Search-formInput"
autocomplete="off"
placeholder="Enter your search query"