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
// https://en.wikipedia.org/wiki/List_of_S%26P_500_companies | |
var dataFieldKeys = []; | |
var companies = []; | |
var domTable = document.getElementById('constituents'); | |
// populate col headers | |
var domTableHeaders = domTable.children[0].children[0].children; | |
for(var i = 0; i < domTableHeaders.length; i++) { |
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
# $OpenBSD: sshd_config,v 1.84 2011/05/23 03:30:07 djm Exp $ | |
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options override the |
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
private static final HashMap<String, String> corsHeaders = new HashMap<String, String>(); | |
static { | |
corsHeaders.put("Access-Control-Allow-Methods", "GET,PUT,POST,DELETE,OPTIONS"); | |
corsHeaders.put("Access-Control-Allow-Origin", "*"); | |
corsHeaders.put("Access-Control-Allow-Headers", "Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin,"); | |
corsHeaders.put("Access-Control-Allow-Credentials", "true"); | |
} | |
public final static void apply() { |
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
pragma solidity ^0.4.23; | |
contract ShenzhenTong { | |
address public owner; // 合同创新的人 | |
uint public feePerStation; // 每站费用 | |
// 每个卡的账户余额 | |
mapping (address => uint) public card_balances; | |
string[] public stations; |
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
#include <iostream> | |
#include <iomanip> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <openssl/sha.h> | |
#include <unistd.h> // for sleep | |
using namespace std; |
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
public static int[] splice(int a[], int offset, int b[]) { | |
int[] resultArray = new int[a.length + b.length]; | |
for(int i = 0; i < resultArray.length; i++) { | |
if (i < offset) { // before the part b should be copied to | |
resultArray[i] = a[i]; | |
} | |
else if (i - offset < b.length) { // in the middle of the part b is copied to | |
resultArray[i] = b[i - offset]; | |
} |
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
Koogra.IWorkbook workbook = Koogra.WorkbookFactory.GetExcel2007Reader(excelFileBrowserDialog.FileName); | |
Koogra.IWorksheet worksheet = workbook.Worksheets.GetWorksheetByName(sheetName); | |
return (string)(worksheet.Rows.GetRow(0).GetCell(0).GetFormattedValue()); |
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
Microsoft.Office.Interop.Excel._Application _app = new Microsoft.Office.Interop.Excel.Application(); | |
Microsoft.Office.Interop.Excel.Workbook workbook = _app.Workbooks.Open(filePath); | |
Microsoft.Office.Interop.Excel.Worksheet sheet = workbook.Sheets[sheetName] as Microsoft.Office.Interop.Excel.Worksheet; | |
Microsoft.Office.Interop.Excel.Range range = sheet.get_Range("A1:A1", System.Reflection.Missing.Value); | |
return range.Text; |
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
{ | |
"number": 1455438, | |
"hash": "0x0ff4e11dd10713f86d80c71a3d3566c52b0e40f1eaa822f8c9de5df2a79b50a3", | |
"parentHash": "0xc5ea14302610f08f0e8143eff0e05ea1d5ad36b3f424bdef6edbf3029d4d9970", | |
"nonce": "0xf31e0378078fbb29", | |
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", | |
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | |
"transactionsRoot": "0xca67929764679c0f8555a741da5845cfd079dc8978c8d53711289848a9fe85fd", | |
"stateRoot": "0xef998cece82ee472c447ba7ab3c8c31705612fa06f65e5c628ef44033 |
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
var a = new Date ( 0 ); | |
a.setMilliseconds(1457991774772); | |
var b = new Date(1457991774772); | |
// would think their the same but b is one hour after a... |
NewerOlder