Skip to content

Instantly share code, notes, and snippets.

View Enkuushka's full-sized avatar

Enkuushka Enkuushka

  • Mongolia
View GitHub Profile
version: '3.6'
services:
corextestnet:
hostname: parity
image: corexchain/corex:latest
volumes:
- /node_data/corex_test_data:/root/.corexchain
ports:
- "5050:5050"
- "18545:18545"
const Web3 = require('web3');
const TruffleConfig = require("../truffle");
var Migrations = artifacts.require("./Migrations.sol");
module.exports = function(deployer, network, addresses) {
const config = TruffleConfig.networks[network];
if(process.env.PW) {
const web3 = new Web3(new Web3.providers.HttpProvider('http://'+config.host+':'+config.port));
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "5666" // Match any network id
},
rinke: {
@Enkuushka
Enkuushka / config.php
Created July 24, 2017 07:17 — forked from SilverFire/config.php
Yii2 set timezone for DB connection
<?php
return [
'components' => [
'db' => [
'class' => '\yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=demo',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
@Enkuushka
Enkuushka / CrosstabGroupTest.java
Last active April 3, 2017 09:47
DynamicReports Cross-tab row, column ordering by value field
package enkh.mon.java.codes.testing
import java.util.ArrayList;
import java.util.List;
import net.sf.dynamicreports.examples.Templates;
import net.sf.dynamicreports.jasper.builder.JasperReportBuilder;
import net.sf.dynamicreports.report.base.expression.AbstractSimpleExpression;
import net.sf.dynamicreports.report.base.expression.AbstractValueFormatter;
import static net.sf.dynamicreports.report.builder.DynamicReports.asc;
import static net.sf.dynamicreports.report.builder.DynamicReports.cmp;