CTRL-X + D - compare directories or files;
TAB or Ctrl-U is switching focus between left and right panel;
# Basic key operators to query the JSON objects : | |
# #> : Get the JSON object at that path (if you need to do something fancy) | |
# -> : Get the JSON object at that path (if you don't) | |
# ->> : Get the JSON object at that path as text | |
# {obj, n} : Get the nth item in that object | |
# https://www.postgresql.org/docs/9.4/functions-json.html#FUNCTIONS-JSONB-OP-TABLE | |
# Date | |
# date before today |
This public gist will be used as badges storage for https://github.com/bsa7/SimpleMLPipeline |
import math | |
import numpy as np | |
# P(k1, k2) = F(x'') - F(x') | |
# where x', x'' - first and second derivatives from x | |
# xs = (k1 - np) / (n * p * q) ** 0.5 | |
# xss = (k2 - np) / (n * p * q) ** 0.5 | |
# F(x) = (1 / (2 * PI) ** 0.5) * integral(0, x) e ** -(z**2 / 2) dz | |
def P(n, p, k1, k2): |
# frozen_string_literal: true | |
# You would to run `HelpersMethods.new.call` as Rails class from rails console | |
class HelpersMethods | |
def call | |
helper_files = Dir.glob(Rails.root.join('app/helpers/**/*.rb')) | |
helpers_methods = {} | |
intersections = {} | |
helper_files.each do |file_name| |
Процедура СкриптКонтролИнит(scriptCtrl) | |
scriptCtrl = СоздатьОбъект("MSScriptControl.ScriptControl"); | |
scriptCtrl.Language="jscript"; | |
код = " | |
| | |
| function parseJSON(strJSON) { | |
| var tmpFunc = (new Function('return('+strJSON+');'))(); | |
| return(tmpFunc); | |
| } | |
| |
Сделайте соответствующие настройки в своей IDE, например для Visual Studio Code вы можете установить плагины:
demo: https://codepen.io
simple select with searchable, multiple and creatable:
<CustomSelect
items={items}
module Api | |
module V2 | |
module ApiHelper | |
## Общий метод генерации ключей для кэша redis | |
def self.redis_key(params) | |
params[:locale] = I18n.locale | |
params_keys = params.keys.map(&:to_s).sort.map(&:to_sym) | |
['.', params_keys.map { |key| "#{key}:#{params[key]}" }.join('&'), '.'].join | |
end | |
end |