Skip to content

Instantly share code, notes, and snippets.

View iSarCasm's full-sized avatar

Ihor Tsykalo iSarCasm

  • Canada
  • 10:48 (UTC -06:00)
View GitHub Profile
import api
while True:
api.request_frame()
if api.stage != 'prepare':
continue
if api.shop_closed():
api.open_shop()
class SomeController
def create
@objective = CreateObjective.call(
tenant: Apartment::Tenant.current,
params: params
).objective
end
end
module CreateObjective
class GreetUser
include Interactor
def call
puts "Hello, #{context.user.name}"
end
end
class SaveUser
include Interactor
@iSarCasm
iSarCasm / 123
Last active June 14, 2018 14:28
123
event(e1, 0.9).
event(e2, 0.9).
event(e3, 0.9).
event(e4, 0.9).
event(e5, 0.9).
sum(2, 3, e0).
sum(e0, e0, e1).
sum(3, e1, e2).

Why are you applying for Financial Aid?

I’m a student from Dnipro, Ukraine. I am currently 21 years old and studying Cybersecurity in Dnipropetrovsk National University of Railway Transport named after academician V. Lazaryan (DNURT). I am interested in studying Computer Science, Cybersecurity and Artificial Intelligence (especially Machine Learning). Unfortunately, because all courses at my local universities are highly outdated and poorly designed I take all the possibilities to learn from free online resources and I consider Coursera one of the best so far.

I live only for my scholarship (925 UAH or about $37 per month) and a part-time job (30-50$ per month). In this circumstance, it is very much difficult for me to gather such amount of money for the course. Financial Aid will help me take this course without any adverse impact on my monthly essential needs and make a step into wonderful future of possibilities. So I’m badly in need of this financial aid and would be grateful for such a great oppor

require 'rails_helper'
RSpec.describe VideosController, type: :controller do
include Devise::Test::ControllerHelpers
before { stub_video }
describe '#show' do
context 'user opens one of videos' do
let(:user) { create :user }

Introduction

  • SQL Structures Query Language. Declarative programming language
    • DDL Data Definition Language
      • Create, Alter, Drop
    • DML Data Manipulation Language
      • Insert, Update, Delete
    • TCL Transaction Control Language
      • begin, commit, rollback, start transaction, set transaction (savepoint, release savepoint, rollback to savepoint)
    • DCL Data Control Language
  • grant, revoke
@iSarCasm
iSarCasm / Git.md
Last active January 22, 2018 12:56
  1. Remove from staging git reset -- <dir_name/file_name>
  2. Checkout remote branch git checkout -b test origin/test