This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Fetch API</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | |
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" |
This file contains hidden or 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
import os | |
deger = 1 | |
# 1_degisken = "dsdsd" | |
# degisken1 = "deger" | |
# print(type(deger)) | |
# print(type(degisken1)) | |
# print(2 * "a") # aa |
This file contains hidden or 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
module EasyInitializer | |
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/MethodLength, Metrics/PerceivedComplexity | |
def initialize_with(*attributes, **config) | |
named_params = _prepare_named_params config[:named_params] | |
getter = attributes + named_params.keys | |
# define accessors | |
instance_eval do | |
attr_reader(*getter) |
This file contains hidden or 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
# frozen_string_literal: true | |
module Utils | |
module Retry | |
RETRIABLE_DEFAULT_CONFIGURATION = { | |
on: [StandardError], | |
max_retries: 3, | |
sleep: 0, | |
exponential: true | |
}.freeze |
This file contains hidden or 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
# frozen_string_literal: true | |
require 'aws-sdk-s3' | |
require 'fileutils' | |
require 'open3' | |
require 'singleton' | |
# Adapted from https://github.com/omu/zoo/blob/master/git-import/git-import | |
module Shell | |
Result = Struct.new :args, :out, :err, :exit_code do |
This file contains hidden or 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
redhat.vscode-yaml | |
shardulm94.trailing-spaces | |
bbenoist.vagrant | |
chenxsan.vscode-standardjs | |
sianglim.slim | |
vortizhe.simple-ruby-erb | |
rebornix.ruby | |
stormwarning.json-template | |
dbaeumer.vscode-eslint | |
dracula-theme.theme-dracula |
This file contains hidden or 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
{ | |
"workbench.colorTheme": "Dark (Molokai)", | |
"workbench.iconTheme": "easy-icons", | |
"window.zoomLevel": 1, | |
"ruby.lint": { | |
"ruby": { | |
"unicode": true //Runs ruby -wc -Ku | |
}, | |
"rubocop": { | |
"lint": true, |
This file contains hidden or 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
module VirtualPos | |
# TypeCheckError | |
class TypeCheckerError < StandardError | |
attr_reader :attribute, :object | |
def initialize(attribute: nil, message: nil, object: nil) | |
@attribute = attribute | |
@object = object | |
super(message || "Type in not valid for #{attribute}") | |
end |
This file contains hidden or 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
<div class='form-group col-sm-6'> | |
<%= select_tag(:country_id, options_from_collection_for_select(Country.all, :id, :name), class: 'form-control') %> | |
</div> | |
<div class='form-group col-sm-6'> | |
<%= select_tag(:city_id, [], disabled: true, class: 'form-control') %> | |
</div> | |
<div class='form-group col-sm-6'> | |
<%= select_tag(:district_id, [], disabled: true, class: 'form-control') %> | |
</div> |
This file contains hidden or 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
/* eslint-env jquery */ | |
'use strict' | |
var AjaxHelper = function (parameters) { | |
function init () { | |
$.each(parameters, function (k, parameter) { | |
$(parameter['el']).change(function (event) { | |
var path = generateSourcePath(parameter) | |
var config = { |
NewerOlder