flowchart TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
This file contains 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
select category, reason_code_id, kind, symbol, count(*) as counter from disbursement_payment_request_current_states dprcs | |
join disbursement_states ds on ds.id = dprcs.state_id and ds.category in ('rejected', 'action_required') | |
join disbursement_payment_request_state_reason_codes dprsrc on dprsrc.payment_request_state_id = dprcs.payment_request_state_id | |
join reason_codes rc on rc.id = dprsrc.reason_code_id | |
group by category, reason_code_id, kind, symbol |
This file contains 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
class CarsController < ApplicationController | |
def index | |
@cars = Car.all | |
render json: cars_to_geojson(@cars) | |
end | |
private | |
def cars_to_geojson(cars) |
This file contains 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 numpy as np | |
import cv2 | |
from PIL import Image | |
import imagehash | |
import numpy as np | |
import os | |
from tqdm import tqdm | |
def bin2hex(arr): | |
h = 0 |
This file contains 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 numpy as np | |
import cv2 | |
from PIL import Image | |
import imagehash | |
from imagehash import * | |
import numpy as np | |
import os | |
import matplotlib.pyplot as plt | |
from tqdm import tqdm |
This file contains 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
["cirko_palapine", "cirko_direktorius", "dvynes", "cowboy_grisa", "dresuotojas", "gimnaste", "indenu_bosas", "kaubojas_su_sautuvu", "klounas", "krautuve", "kunigas", "magas", "saloon", "saloon_lady", "serifo_bustine", "sherifas"] |
This file contains 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
/* USER CODE BEGIN Header */ | |
/** | |
****************************************************************************** | |
* @file : main.c | |
* @brief : Main program body | |
****************************************************************************** | |
* @attention | |
* | |
* <h2><center>© Copyright (c) 2020 STMicroelectronics. | |
* All rights reserved.</center></h2> |
This file contains 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
''' | |
Implementation of a simulation of a St. Petersburg paradox | |
For more info, visit: | |
https://en.wikipedia.org/wiki/St._Petersburg_paradox | |
''' | |
class Toss | |
attr_reader :n | |
This file contains 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
var db = require('diskdb'); | |
db.connect('db', ['articles']); | |
var article1 = { | |
title : 'diskDB rocks', | |
published : 'today', | |
rating : '5 stars' | |
} | |
var article2 = { |