This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use JSON; | |
my $file = 'table_YHOO.csv'; | |
my @data; | |
open(my $fh, '<', $file) or die "Can't read '$file' [$!]\n"; | |
while (my $line = <$fh>) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use DBI; | |
use Time::Local; | |
use LWP::Simple; | |
sub trim { | |
my $s = shift; | |
$s =~ s/^"|"$//g; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use DBI; | |
sub trim { | |
my $s = shift; | |
$s =~ s/^"|"$//g; | |
$s =~ s/^\s+|\s+$//g; | |
return $s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import httplib | |
import StringIO | |
import hashlib | |
import uuid | |
import random | |
import string | |
import sys | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mysqli = new mysqli("localhost", "root", "toor", "khfinance"); | |
if ($mysqli->connect_errno) { | |
print("Failed to connect to MySQL: " . $mysqli->connect_error); | |
} | |
$query = "SELECT * FROM khf_symbols"; | |
if ($result = $mysqli->query($query)) { | |
while ($row = $result->fetch_assoc()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use DBI; | |
use Time::Local; | |
use LWP::Simple; | |
sub trim { | |
my $s = shift; | |
$s =~ s/^"|"$//g; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#user nobody; | |
worker_processes 1; | |
error_log logs/error.log; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Adminer 4.1.0 MySQL dump | |
SET NAMES utf8; | |
SET time_zone = '+00:00'; | |
SET foreign_key_checks = 0; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
USE `muyeog`; | |
DROP TABLE IF EXISTS `cn_assets`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Specifications: | |
# - 5x3 reel | |
# - left-to-right checking | |
# Winning Combinations: | |
# TOP TOP TOP TOP TOP | |
# MID MID MID MID MID | |
# BOT BOT BOT BOT BOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var ERRR = 1; | |
var WARN = 2; | |
var LOG0 = 3; | |
var LOG1 = 4; | |
var LOG2 = 5; | |
var DEBUG = LOG0; | |
var PLOOKUP = [ |
OlderNewer