Skip to content

Instantly share code, notes, and snippets.

View usirin's full-sized avatar

Umut Sirin usirin

View GitHub Profile
import React, { Component } from 'react'
const URL_MAP = {
blue: 'http://localhost:5000/build/index.js',
orange: 'http://localhost:5001/build/index.js',
}
const capitalize = name => name.charAt(0).toUpperCase() + name.slice(1)
const loaded = {}
@usirin
usirin / inscription with crafting op.txt
Created April 5, 2019 20:33
inscription with crafting op
^1^T^Soperations^T^SMailing^T^SGlegdollarz^T^Srestock^b^SmaxQtyEnabled^b^SkeepQty^N0^Starget^SGlegdollarz^SrestockSources^T^Sguild^b^Sbank^b^t^SmaxQty^N10^t^SGlegtotem^T^Srestock^b^SmaxQty^N10^SmaxQtyEnabled^b^Starget^SGlegtotem^SrestockSources^T^Sguild^b^Sbank^b^t^SkeepQty^N0^t^SGlegcola^T^Srestock^b^SmaxQty^N10^SkeepQty^N0^Starget^SGlegcola^SrestockSources^T^Sguild^b^Sbank^b^t^SmaxQtyEnabled^b^t^t^SAuctioning^T^SSell~`Material~`(20)^T^SaboveMax^SmaxPrice^SnormalPrice^Smatnormal^Sduration^N12^SmatchStackSize^B^Sblacklist^S^SpostCap^N10^SbidPercent^N0.95^SstackSizeIsCap^b^SmaxPrice^Smatmax^SignoreLowDuration^N0^SstackSize^N20^SkeepPosted^N0^Sundercut^S1c^SkeepQuantity^N0^SmaxExpires^N0^SkeepQtySources^T^t^SpriceReset^SminPrice^ScancelUndercut^B^ScancelRepost^b^ScancelRepostThreshold^S0c^SminPrice^Smatmin^t^SSell~`Material~`(200)^T^SaboveMax^SmaxPrice^SnormalPrice^Smatnormal^Sduration^N12^SmatchStackSize^B^Sblacklist^S^SpostCap^N5^SbidPercent^N0.95^SstackSizeIsCap^b^SmaxPrice^Smatmax^SignoreLowDuration^N0^Ssta
@usirin
usirin / sand-shift.txt
Created November 26, 2018 21:02
Sand Shift
^1^T^Soperations^T^SMailing^T^Sto~`Glegdollarz^T^Srestock^b^SkeepQty^N0^SmaxQtyEnabled^b^Starget^SGlegdollarz^SrestockSources^T^Sguild^b^Sbank^b^t^SmaxQty^N10^t^t^SAuctioning^T^SFx100~`low~`min^T^SaboveMax^SmaxPrice^SnormalPrice^Smax(175%dbmarket,133%avgbuy)^Sduration^N12^SmatchStackSize^B^SkeepQuantity^N0^SpostCap^N10^SbidPercent^N1^SstackSizeIsCap^b^SmaxPrice^S400%~`dbmarket^SignoreLowDuration^N0^SstackSize^N100^SkeepPosted^N0^Sundercut^S1^SmaxExpires^N0^SpriceReset^Snone^ScancelRepostThreshold^S10000^ScancelRepost^B^ScancelUndercut^B^SminPrice^Smin(70%~`dbmarket,100%avgbuy)^SkeepQtySources^T^t^Sblacklist^S^t^SFx50~`low~`min^T^SaboveMax^SmaxPrice^SnormalPrice^Smax(175%dbmarket,133%avgbuy)^Sduration^N12^SmatchStackSize^B^SkeepQuantity^N0^SpostCap^N10^SbidPercent^N1^SstackSizeIsCap^b^SmaxPrice^S400%~`dbmarket^SignoreLowDuration^N0^SstackSize^N50^SkeepPosted^N0^Sundercut^S1^SmaxExpires^N0^SpriceReset^Snone^ScancelRepostThreshold^S10000^ScancelRepost^B^ScancelUndercut^B^SminPrice^Smin(70%~`dbmarket,100%avgbuy)^
@usirin
usirin / gist:d735477e498d8a00d1f752ad04a168d7
Last active November 26, 2018 20:49
Flip Group: Domination
^1^T^Soperations^T^SMailing^T^S#Default^T^Srestock^b^SkeepQty^N0^SmaxQtyEnabled^b^Starget^S^SrestockSources^T^Sguild^b^Sbank^b^t^SmaxQty^N10^t^t^SAuctioning^T^SFx100~`dominate^T^SaboveMax^SmaxPrice^SnormalPrice^Smax(250%dbmarket,300%avgbuy)^Sduration^N12^SmatchStackSize^B^SkeepQuantity^N0^SpostCap^N10^SbidPercent^N1^SstackSizeIsCap^b^SmaxPrice^S400%~`dbmarket^SignoreLowDuration^N0^SstackSize^N100^SkeepPosted^N0^Sundercut^S1^SmaxExpires^N0^SpriceReset^Snone^ScancelRepostThreshold^S10000^ScancelRepost^B^ScancelUndercut^B^SminPrice^Smin(100%~`dbmarket,120%avgbuy)^SkeepQtySources^T^t^Sblacklist^S^t^SSingle~`Unlimited^T^SaboveMax^SmaxPrice^SnormalPrice^S170%~`DBMarket^Sduration^N24^SmatchStackSize^b^Sblacklist^S^SpostCap^N200^SbidPercent^N1^SstackSizeIsCap^b^SmaxPrice^S300%~`DBMarket^SignoreLowDuration^N0^SstackSize^N1^SkeepPosted^N0^Sundercut^S1^SmaxExpires^N0^SpriceReset^SnormalPrice^ScancelRepostThreshold^S10000^ScancelRepost^B^ScancelUndercut^B^SminPrice^S90%~`DBMarket^SkeepQtySources^T^t^SkeepQuantity^N0^t^SF
@usirin
usirin / tsm4-boe-mounts.txt
Created October 11, 2018 22:16
TS4 BoE Mounts including BfA with operations
^1^T^Soperations^T^SMailing^T^S#Default^T^Srestock^b^SmaxQty^N10^SmaxQtyEnabled^b^Starget^S^SrestockSources^T^Sguild^b^Sbank^b^t^SkeepQty^N0^t^t^SAuctioning^T^SAvgbuy/MV~`Singles~`x~`1~`(RegionMV~`90/150/500)^T^SaboveMax^SmaxPrice^SnormalPrice^Smax(first~`(200%~`AvgBuy/0.95,~`150%~`first(DBRegionMarketAvg,~`DBRegionHistorical,~`DBGlobalMarketAvg,~`DBGlobalHistorical)),~`VendorSell/0.95)^Sduration^N24^SmatchStackSize^b^SkeepQuantity^N0^SpostCap^N1^SbidPercent^N1^SstackSizeIsCap^b^SmaxPrice^Smax(first~`(500%~`AvgBuy/0.95,~`500%~`first(DBRegionMarketAvg,~`DBRegionHistorical,~`DBGlobalMarketAvg,~`DBGlobalHistorical)),~`VendorSell/0.95)^SignoreLowDuration^N0^SstackSize^N1^SkeepPosted^N0^Sundercut^S1c^SmaxExpires^N0^SpriceReset^SnormalPrice^ScancelRepostThreshold^S1g^ScancelRepost^B^ScancelUndercut^B^SminPrice^Smax(first~`(102%~`AvgBuy/0.95,~`90%~`first(DBRegionMarketAvg,~`DBRegionHistorical,~`DBGlobalMarketAvg,~`DBGlobalHistorical)),~`VendorSell/0.95)^SkeepQtySources^T^t^Sblacklist^S^t^t^SCrafting^T^S#Default^T^Sm
@usirin
usirin / tsm-battlepets.txt
Created October 10, 2018 11:02
TSM4 Battle pets with operations including BfA
^1^T^Soperations^T^SMailing^T^S#Default^T^Srestock^b^SmaxQty^N10^SkeepQty^N0^Starget^S^SrestockSources^T^Sguild^b^Sbank^b^t^SmaxQtyEnabled^b^t^t^SAuctioning^T^SBattle~`Pets^T^SaboveMax^SmaxPrice^SnormalPrice^Smax(250%~`avgbuy/.95,~`ifgt(DBRegionMarketAvg,~`2500g,~`min(100%~`DBMarket,~`100%~`DBRegionMarketAvg),~`min(85%~`DBMarket,~`70%~`DBRegionMarketAvg)))^Sduration^N24^SmatchStackSize^b^SkeepQuantity^N0^SpostCap^N1^SbidPercent^N1^SstackSizeIsCap^b^SmaxPrice^Smax(500%~`avgbuy/.95,~`ifgt(DBRegionMarketAvg,~`2500g,~`max(200%~`DBMarket,~`200%~`DBRegionMarketAvg),~`max(125%~`DBMarket,~`125%~`DBRegionMarketAvg)))^SignoreLowDuration^N0^SstackSize^N1^SkeepPosted^N0^Sundercut^S1c^SmaxExpires^N0^SpriceReset^Snone^ScancelRepostThreshold^S1g^ScancelRepost^B^ScancelUndercut^B^SminPrice^Sfirst(105%~`avgbuy/.95,~`ifgt(DBRegionMarketAvg,~`2500g,~`min(80%~`DBMarket,~`60%~`DBRegionMarketAvg),~`min(70%~`DBMarket,~`50%~`DBRegionMarketAvg)))^SkeepQtySources^T^t^Sblacklist^S^t^SVendor~`Items~`Singles~`x~`5^T^SaboveMax^SmaxPrice^S
@usirin
usirin / html5TagSyntax.bnf
Last active May 20, 2018 19:46 — forked from tkqubo/html5TagSyntax.bnf
EBNF notation for HTML5 tag syntax
tag-open := '<' tag-name ws* attr-list? ws* '>'
tag-empty := '<' tag-name ws* attr-list? ws* '/>'
tag-close := '</' tag-name ws* '>'
attr-list := (ws+ attr)*
attr := attr-empty | attr-unquoted | attr-single-quoted | attr-double-quoted
attr-empty := attr-name
attr-unquoted := attr-name ws* = ws* attr-unquoted-value
#!/bin/bash
bucket=$1
set -e
echo "Removing all versions from $bucket"
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'`
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'`
@usirin
usirin / delete_all_object_versions.sh
Created May 10, 2018 02:13 — forked from weavenet/delete_all_object_versions.sh
Delete all versions of all files in s3 versioned bucket using AWS CLI and jq.
#!/bin/bash
bucket=$1
set -e
echo "Removing all versions from $bucket"
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'`
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'`
@usirin
usirin / atom-snippets.cson
Created January 5, 2018 01:08
Atom snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#