Skip to content

Instantly share code, notes, and snippets.

View oiami's full-sized avatar

Pattawan Gerlings-Kaewduangdee oiami

View GitHub Profile
{
dataset: {
id: 9775409,
dataset_code: "AAPL",
database_code: "WIKI",
name: "Apple Inc (AAPL) Prices, Dividends, Splits and Trading Volume",
description: "End of day open, high, low, close and volume, dividends and splits, and split/dividend adjusted open, high, low close and volume for Apple Inc. (AAPL). Ex-Dividend is non-zero on ex-dividend dates. Split Ratio is 1 on non-split dates. Adjusted prices are calculated per CRSP (<a href="http: //www.crsp.com/products/documentation/crsp-calculations" rel="nofollow" target="blank">www.crsp.com/products/documentation/crsp-calculations</a>) <p>This data is in the public domain. You may copy, distribute, disseminate or include the data in other products for commercial and/or noncommercial purposes.</p> <p>This data is part of Quandl's Wiki initiative to get financial data permanently into the public domain. Quandl relies on users like you to flag errors and provide data where data is wrong or missing. Get involved: <a href="mailto: connect@qua
@oiami
oiami / mock-storage.js
Created August 15, 2018 15:37 — forked from nfarina/mock-storage.js
Mock Google Cloud Storage for JS
//
// Quick & Dirty Google Cloud Storage emulator for tests. Requires
// `stream-buffers` from npm. Use it like this:
//
// `new MockStorage().bucket('my-bucket').file('my_file').createWriteStream()`
//
class MockStorage {
buckets: {[name: string]: MockBucket};
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"
@oiami
oiami / app.pm
Last active January 11, 2016 13:53
Example of Using Captcha::reCAPTCHA::V2
use Captcha::reCAPTCHA::V2;
any ['get', 'post'] => '/' => sub {
my $rc = Captcha::reCAPTCHA::V2->new;
my $widget = $rc->html('site_key', { theme => 'light' });
template 'index' => { recaptcha => $widget };
};
@oiami
oiami / list.pl
Last active August 29, 2015 14:17
use strict;
use warnings;
package WebService::SendGrid::Newsletter::Lists;
use WebService::SendGrid::Newsletter::Lists::Email;
=method new
Creates a new instance of WebService::SendGrid::Newsletter::Lists.
If:
- you add and commit with the wrong email address in git, and
- your remote has a hook set up to prevent you from pushing with the bad address
Then you need to amend the author of your commit before push can succeed:
1. fix your email address in git config:
$ git config user.name "Your Name"
1 => [
"B",
[
{ name => "Bil, b\xE5t og motor", url => "bil_bat_og_motor/" },
{ name => "Bolig og eiendom", url => "bolig_og_eiendom/" },
{ name => "Bransjer og bedrifter", url => "bransjer_og_bedrifter/" },
],
"F",
[
{ name => "Familie og livsstil", url => "familie_og_livsstil/" },
@oiami
oiami / Atoz Data
Created October 2, 2012 02:03
Atoz Data
{
charactors => [
{
detail => [
{
name => "ABC Penger",
url => "http://www.abcnyheter.no/abc-penger/oekonomi/",
},
{ name => "Altinn", url => "https://www.altinn.no/no/" },
],
bless( {
'json_results' => undef,
'page' => 1,
'_duplicates' => 0,
'entries_per_page' => '10',
'query' => 'thailand',
'supplemental_count' => 0,
'supplemental_hits' => [],
'entry_class' => 'Net::Search::JSON::Entry',
'current_count' => 0,