Skip to content

Instantly share code, notes, and snippets.

View thatgibbyguy's full-sized avatar

John Gibby thatgibbyguy

View GitHub Profile
@thatgibbyguy
thatgibbyguy / slugifyExampleTemplate.html
Last active March 6, 2016 17:03
slugifyExampleTemplateWithProps
<template name="slugifyExampleTemplate">
<div class="units-row">
{{> React component=slugifyExampleComponent
isDisabled=true
showSlug=false
}}
</div>
</template>
@thatgibbyguy
thatgibbyguy / slugifyExample.jsx
Created March 6, 2016 16:58
slugifyExampleWithProps
import React from 'react';
import slugify from 'slugify';
export default React.createClass({
propTypes: {
isDisabled: React.PropTypes.bool,
showSlug: React.PropTypes.bool
},
getInitialState() {
@thatgibbyguy
thatgibbyguy / slugifyExampleTemplate.html
Last active March 6, 2016 16:58
slugifyExampleTemplate
<template name="slugifyExampleTemplate">
<div class="units-row">
{{> React component=slugifyExampleComponent}}
</div>
</template>
@thatgibbyguy
thatgibbyguy / slugifyExampleHelper.js
Created March 6, 2016 16:42
slugifyExampleHelper
import SlugifyExample from '../components/slugifyExample.jsx';
Template.slugifyExampleTemplate.helpers({
slugifyExampleComponent: () => SlugifyExample
});
@thatgibbyguy
thatgibbyguy / slugifyExample.jsx
Last active March 6, 2016 16:24
slugifyComponent
import React from 'react';
import slugify from 'slugify';
export default React.createClass({
getInitialState() {
return {
slugifiedString: null,
textValue: null,
isDisabled: true,
showSlug: false
@thatgibbyguy
thatgibbyguy / slugifyExample.jsx
Last active March 6, 2016 16:31
slugifyComponentCaptureValue
import React from 'react';
import slugify from 'slugify';
export default React.createClass({
getInitialState() {
return {
slugifiedString: null,
textValue: null,
isDisabled: true
}
@thatgibbyguy
thatgibbyguy / slugifyExample.jsx
Last active March 6, 2016 16:32
slugifyComponentStart
import React from 'react';
import slugify from 'slugify';
export default React.createClass({
getInitialState() {
return {
slugifiedString: null,
textValue: null
}
},
var date = function(){
$("#counter span").remove();
$("#counter").append("<span>" + currentDate + "</span>");
};
var reasons = $("#reasons p");
var number = $("#number");
var anotherReason = $("#another-reason");
var randReasons = 0;
@thatgibbyguy
thatgibbyguy / gist:02059f61ae93d529c8b2
Created June 17, 2015 23:16
manship-infinite-scroll
<script type="text/javascript">
$(document).ready(function(){
$("#timeline").infinitescroll({
navSelevtor : ".navigation",
nextSelector : "a.next",
itemSelector : ".sectioner",
contentSelector : "#timeline",
extractLink: true
});
$('.simply-scroll-btn-left').text("<<").show();