This article will guide you thru running a production ready meteor.js app on Digital Ocean with Phusion Passenger and ngnix.
- Create a droplet
- Install Phusion Passanger with NGNIX
- Install node.js
- Configure NGNIX
var n,t; | |
typeof document.hidden != "undefined" ? | |
(e = "hidden", n = "visibilitychange", t = "visibilityState") : | |
typeof document.mozHidden != "undefined" ? | |
(e = "mozHidden", n = "mozvisibilitychange", t = "mozVisibilityState") : | |
typeof document.msHidden != "undefined" ? | |
(e = "msHidden", n = "msvisibilitychange", t = "msVisibilityState") : | |
typeof document.webkitHidden != "undefined" && | |
(e = "webkitHidden", n = "webkitvisibilitychange", t = "webkitVisibilityState"), t && $(document).on(n, function (e) { | |
var n = "Come back! We miss you!"; |
#!/bin/sh | |
# assumes a clean install on a fresh linux box. | |
# for use w/ codeship.io | |
set -e | |
set -u | |
# a reference to the cloned repository's path | |
PWD=`pwd` | |
METEOR_APP_PATH="$PWD/MeteorApp" |
.fb_access_token | |
.fbconsole.py |
const axios = require('axios'); | |
function getFacebookData(){ | |
const PAGE_ACCESS_TOKEN=`YOUR_PAGE_ACCESS_TOKEN`; | |
const fb_id = request.body.originalDetectIntentRequest.payload.data.sender.id; | |
return axios.get(`https://graph.facebook.com/v6.0/${fb_id}?fields=first_name,last_name,profile_pic&access_token=${PAGE_ACCESS_TOKEN}`); | |
} | |
function welcome(agent) { | |
return getFacebookData() |
/* Flatten das boostrap */ | |
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
-moz-box-shadow: none !important; | |
-webkit-box-shadow: none !important; | |
box-shadow: none !important; | |
-webkit-border-radius: 0px !important; | |
-moz-border-radius: 0px !important; | |
border-radius: 0px !important; | |
border-collapse: collapse !important; | |
background-image: none !important; |
// Usage : less2stylusDir('../src/css/'); | |
var fs = require('fs'); | |
// this less 2 stylus conversion script make a stylus easy to read syntax | |
// - let the braces | |
// - replace the @ for var as $ | |
// - let semicolons | |
function less2stylus(less) |
'use strict'; | |
const axios = require('axios'); | |
const functions = require('firebase-functions'); | |
const {WebhookClient} = require('dialogflow-fulfillment'); | |
const {Card, Suggestion} = require('dialogflow-fulfillment'); | |
process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements | |
exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => { |
<?php | |
/** | |
* Redirect users to custom URL based on their role after login | |
* | |
* @param string $redirect | |
* @param object $user | |
* @return string | |
*/ | |
function wc_custom_user_redirect( $redirect, $user ) { | |
// Get the first of all the roles assigned to the user |
I want you to become my Prompt Creator. | |
Your goal is to help me craft the best possible prompt for my needs. | |
The prompt will be used by you, ChatGPT. | |
You will follow the following process: | |
1. |