Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
| import { | |
| AceComponent, | |
| ButtonElementComponent, | |
| VaadinTextField, | |
| VaadinGrid, | |
| Layout | |
| } from 'ace-framework'; | |
| import DonerService from '../../services/doner.service'; |
| // Always bet on human | |
| const p1 = { | |
| human: false | |
| }; | |
| switch (guess) { | |
| case 'human': | |
| if (p1.human === true) { | |
| // whew, the human lives |
Getting started:
Related tutorials:
| -module(couch_gun). | |
| -export([connect/2, all_documents/2, get_document/3]). | |
| %% Return an id for a couchdb connection | |
| connect(_User, _Password) -> | |
| gun:open("127.0.0.1", 5984), | |
| receive | |
| {gun_up, Pid, Protocol} -> | |
| {Pid, Protocol}; | |
| {gun_down, _Protocol, Reason, _} -> |
| 'use strict'; | |
| var https = require('https'), | |
| fs = require('fs'), | |
| cheerio = require('cheerio'), | |
| page = 0, | |
| sortOption = 3, | |
| $ = null, | |
| minCnt = 40, | |
| depth = 40, | |
| results = [], |
| /* | |
| * Helper object for working with users within xpages | |
| * Rocky Bevins 2009 (moreoutput@gmail.com) | |
| */ | |
| var User = function() { | |
| } | |
| User.prototype.create = function(fn) { | |
| var userDoc = database.createDocument(); |
| -module(page_handler). | |
| -behaviour(cowboy_http_handler). | |
| -export([init/3, handle/2, terminate/3]). | |
| -record(state, { | |
| }). | |
| init(_, Req, _Opts) -> | |
| {ok, Req, #state{}}. |
| public function createImage($file, $userID, $jobID, $entryID) { | |
| if($file) { | |
| echo var_dump($file); | |
| if ((($file['type'] == 'image/jpeg') || ($file['type'] == 'image/png')) && ($file['size'] < 205000)) { | |
| $thbPath = '/data/htdocs/indieop.com/public_html/app/webroot/img/entries/'. | |
| $userID . '_' . $jobID . '_' . $entryID . '.' . pathinfo($file['name'], PATHINFO_EXTENSION); | |
| $fPath = '/data/htdocs/indieop.com/public_html/app/webroot/img/entries/'. | |
| $userID . '_' . $jobID . '_' . $entryID .'_max' . '.' . pathinfo($file['name'], PATHINFO_EXTENSION); |
| /** | |
| * View-to-JSON CLI script for Node, turns a CouchDB view into a static JSON file. | |
| * Version 0.0.1 | |
| * Example Useage: node vwtojson.js username password view filename directory server port | |
| */ | |
| var fs = require('fs'), | |
| cradle = require('cradle'), | |
| cradleConnection, | |
| database, | |
| username = process.argv[2], |