Skip to content

Instantly share code, notes, and snippets.

kerem keremtiryaki

Block or report user

Report or block keremtiryaki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View update root css var by javascript
document.documentElement.style.setProperty('--your-variable', '#YOURCOLOR');
@keremtiryaki
keremtiryaki / keyBindings.json
Last active Aug 7, 2018
vscode user settings and key bindings
View keyBindings.json
// Place your key bindings in this file to overwrite the defaults
[
// FOLD START
{
"key": "cmd+alt+ctrl+up",
"command": "editor.foldRecursively",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+down",
View js-SKU-generator-for-every-sec.js
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SO
View sample-estimate.json
{
"prices": [
{
"localized_display_name": "uberXL",
"distance": 9.01,
"display_name": "uberXL",
"product_id": "b941611d-ebb4-43fd-804c-9d5003a42dd9",
"high_estimate": 54,
"low_estimate": 43,
"duration": 1080,
View sample-uber-fare-result.js
[{
"fare": {
"additionalFees": [],
"base": "$8.00",
"cancellation": "$10.00",
"description": "THE ORIGINAL UBER",
"fareType": "time_plus_distance",
"isDistanceUnitMetric": false,
"minimum": "$15.00",
"perDistanceUnit": "$3.75",
@keremtiryaki
keremtiryaki / keybindings.json
Last active Oct 22, 2016
vscode eclipse like keybindings.json
View keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+h", "command": "workbench.view.search" },
{ "key": "cmd+alt+up", "command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly" },
{ "key": "cmd+alt+down", "command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly" },
{ "key": "cmd+k", "command": "editor.action.nextSelectionMatchFindAction",
View Monte Carlo simulation.js
/*************************************************
* This is a simple Monte Carlo simulation to see
* whether we should
* go for X BIG deal and/or Y SMALL deals.
*
* What is the best blend?
*
* Author: Ido Green | plus.google.com/+greenido
* Date: 16 July 2013
*
@keremtiryaki
keremtiryaki / howTo.md
Last active Mar 30, 2016
how to create a self signed certificate and upload to AWS
View howTo.md
@keremtiryaki
keremtiryaki / Data.json
Last active Aug 17, 2019
Security Rules & queries
View Data.json
var a = {
"members" : {
"userId1" : {
"team" : "team1",
"team_id" : "teamId1",
"url" : "https://team1.slack.com/",
"user" : "name1",
"user_id" : "userId1"
},
"userId2" : {
@keremtiryaki
keremtiryaki / aws-spot-price-2015-12-09.out
Created Dec 12, 2015 — forked from bergerx/ aws-spot-price-2017-05-20.out
aws spot instance cheapest core price finder
View aws-spot-price-2015-12-09.out
ap-southeast-1a d2.8xlarge ecpu:116 vcpu:36 monthly:64.8 max:64.8 price_count:61 --> 0.558620689655$/month/ecpu
ap-southeast-1b d2.8xlarge ecpu:116 vcpu:36 monthly:64.8 max:64.8 price_count:61 --> 0.558620689655$/month/ecpu
eu-central-1b c4.large ecpu:8 vcpu:2 monthly:12.264192 max:12.744 price_count:1000 --> 1.533024$/month/ecpu
eu-central-1a c4.large ecpu:8 vcpu:2 monthly:12.91104 max:14.4 price_count:1000 --> 1.61388$/month/ecpu
us-west-2c c3.large ecpu:7 vcpu:2 monthly:11.6166153846 max:12.024 price_count:117 --> 1.65951648352$/month/ecpu
us-west-2b c3.large ecpu:7 vcpu:2 monthly:11.7594853273 max:12.456 price_count:886 --> 1.67992647533$/month/ecpu
us-west-2a c3.large ecpu:7 vcpu:2 monthly:11.848536 max:12.888 price_count:1000 --> 1.692648$/month/ecpu
us-west-2b c3.xlarge ecpu:14 vcpu:4 monthly:23.814072 max:25.92 price_count:1000 --> 1.70100514286$/month/ecpu
us-west-2b c3.8xlarge ecpu:108 vcpu:32 monthly:186.467976 max:191.16 price_count:1000 --> 1.72655533333$/month/ecpu
us-west-2c c3.xlarge ecpu:14 v
You can’t perform that action at this time.