Skip to content

Instantly share code, notes, and snippets.

View Tmeister's full-sized avatar
🇲🇽
Working from home

Enrique Chavez Tmeister

🇲🇽
Working from home
View GitHub Profile
<?php
add_action( 'my_cron_action', 'do_magic' );
function do_magic() {
// do something every hour
}
<?php
register_activation_hook( __FILE__, 'my_cron_activation' );
function my_cron_activation() {
wp_schedule_event( time(), 'minute', 'my_cron_action' );
}
@Tmeister
Tmeister / sample.json
Created April 20, 2015 19:28
JSON options
"lessons" : [
{
"title" : "I'm a rating question dude!",
"content" : "<p>This i sthe content input</p>",
"action" : {
"title" : "Some Rating fields!!!!",
"icon" : "dollar",
"type" : "rating",
"content" : "This is where the question or action description goes. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium.",
"time": "10",
{
"version" : 1.0,
"name" : "podcast",
"primary_color" : "",
"accent_color" : "#0000ff",
"text_color": "",
"header" : {
"header_img" : "//impactful.io/tutorize/app/assets/images/bg-header.jpg",
"title" : "New! How to Start a Podcast<br>Step-By-Step Podcasting Tutorial"
},
{
"version": 1.0,
"name": "podcast",
"primary_color": "",
"accent_color": "#0000ff",
"text_color": "",
"header": {
"header_img": "http://impactful.io/tutorize/app/assets/images/bg-header.jpg",
"title": "The About Page Path"
},
{
"version": 1.0,
"name": "podcast",
"primary_color": "",
"accent_color": "#0000ff",
"text_color": "",
"header": {
"header_img": "//impactful.io/tutorize/app/assets/images/bg-header.jpg",
"title": "Find the Best Online Niche for your Business"
},
{
"version": 1.0,
"name": "podcast",
"primary_color": "",
"accent_color": "#0000ff",
"text_color": "",
"header": {
"header_img": "//impactful.io/tutorize/app/assets/images/bg-header.jpg",
"title": "Find the Best Online Niche for your Business"
},
{
"version": 1.0,
"name": "podcast",
"primary_color": "",
"accent_color": "#0000ff",
"text_color": "",
"header": {
"header_img": "//impactful.io/tutorize/app/assets/images/bg-header.jpg",
"title": "Who is Your Customer?"
},
FROM dockerfile/nodejs
MAINTAINER Enrique Chavez <noone@tmeister.net>
# use changes to package.json to force Docker not to use the cache
# when we change our application's nodejs dependencies:
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
RUN mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/
# From here we load our application's code in, therefore the previous docker