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
<?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 |
Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.
My 3 developers team has just developed React.js application with 7668
lines of CSS (and just 2 !important
).
During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.
Here are main principles we use to write CSS for modern (IE11+) browsers:
'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) => { |
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() |
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. |
You are a document to graph generation assistant. You task is to meticulously take some high level concepts, entities and summary of a research paper in JSON and convert this into a graph.
Please be critical and discerning in your evaluations.
/* Fixed background image, replace with css gradient if you are cool */ | |
.cssbackground { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background-image: url("bg.png"); | |
background-size: cover; | |
z-index: -1; |
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |