Skip to content

Instantly share code, notes, and snippets.

View junajan's full-sized avatar
💭
howdy 😁

Jan Jůna junajan

💭
howdy 😁
View GitHub Profile
@junajan
junajan / missing-locales.txt
Created January 14, 2015 09:01
Hearth.net - locales
Loading strings from ../hearth/web/app/app/locales/cs/messages.json and searching in ../hearth/web/app/app/
Searching in files...
OK ............. %d DAYS_AGO
OK ............. %d HOURS_AGO
OK ............. %d MINUTES_AGO
OK ............. %d MONTHS_AGO
OK ............. %d YEARS_AGO
OK ............. 3-days
OK ............. 404_NOT_FOUND_TEXT
OK ............. 404_NOT_FOUND_TITLE
Loading strings from ../../web/app/app/locales/cs/messages.json and searching in ../../web/app/app/
Searching in files...
OK ............. %d DAYS_AGO
OK ............. %d HOURS_AGO
OK ............. %d MINUTES_AGO
OK ............. %d MONTHS_AGO
OK ............. %d YEARS_AGO
OK ............. 3-days
FALSE .......... 404_NOT_FOUND_TEXT
FALSE .......... 404_NOT_FOUND_TITLE
var request = require('request');
var cheerio = require('cheerio');
var Tickers = function(app) {
const T_NAME = 'watchlist';
const WIKI_SP100_LIST_URL = 'http://en.wikipedia.org/wiki/S%26P_100';
const BARCHART_SP100_LIST_URL = 'http://www.barchart.com/stocks/sp100.php?_dtp1=0';
var self = this;
var data = [];
var DB = app.get("db");
{
"Records": [
{
"eventVersion": "2.0",
"eventTime": "1970-01-01T00:00:00.000Z",
"requestParameters": {
"sourceIPAddress": "127.0.0.1"
},
"s3": {
"configurationId": "testConfigRule",
var mysql = require('mysql');
var _ = require('lodash');
/**
* MySQL Wrapper
*
* Usage:
* get ( 'col1, col2', "db_table_name", "1=1", null, "id", "ASC", cbFunct );
* insert ( 'col1, col2',"db_table_name", {const:"AAA"+ (new Date().getMilliseconds()), "popis": "popis" });
* update ( 'col1, col2', "db_table_name", {const:"BBBB"}, "id IN (?)", [45,47,48] );
* sql ( "SELECT * FROM db_table_name WHERE id IN (?)", [1,2,3] );
var async = require('async');
var _ = require('lodash');
var fs = require('fs');
var zlib = require('zlib');
var AWS = require('aws-sdk');
var mime = require('mime');
function Bucket(info, config) {
var self = this;
import React from 'react';
import Select from './select/Select.jsx';
import FilterStore from './../../stores/FilterStore';
import FilterActions from '../../actions/FilterActions';
import StatisticActions from '../../actions/StatisticActions';
import {Grid, Row, Col, Button, Glyphicon} from 'react-bootstrap';
import {statisticsById, statisticsByPath} from '../../libs/statistics';
import styles from './filters.scss';
// idComment, idParentComment, idArticle, userName, userComment, dateAdd
var comments = [
{
id: 1,
parent_id: 0,
article_id: 1,
user_name: "Jiffy",
user_text: "Viva la vida"
},
https://weworkremotely.com/jobs/3115-driven-javascript-node-js-developer
https://angel.co/jan-juna
https://stackoverflow.com/jobs?searchTerm=node.js&type=contract&allowsremote=true
https://www.facebook.com/
https://www.dropurpin.com/
https://news.ycombinator.com/jobs
http://www.devgurus.io/
https://www.startupjobs.cz/nabidka/6918/node-js-developer?utm_source=facebook&utm_medium=ad-auto&utm_content=6918&utm_campaign=2093
https://www.alza.cz/kariera/jpo01149-senior-programator-is-teamleader-art11193.htm?layoutAutoChange=1
https://www.dropurpin.com/apply-now/
=== DAX version ===
Reading DAX history data from 1998-11-02 to 2016-12-30
INIT CAPITAL: 20000
02.11.1998: BUY 4x DAX for price 4761.149902
02.05.2000: SELL 4x DAX for price 7555.919922 (profit 11179.08008 = 55.9%)
11.01.2001: BUY 4x DAX for price 6465.209961
02.05.2002: SELL 4x DAX for price 4964.560059 (profit -6002.599607999997 = -19.25%)
01.11.2002: BUY 7x DAX for price 3165.159912
02.05.2003: SELL 7x DAX for price 2986.00 (profit -1254.1193840000014 = -4.98%)
01.12.2003: BUY 6x DAX for price 3821.199951