Skip to content

Instantly share code, notes, and snippets.

View i0532386223's full-sized avatar
🎯
Focusing

Ivan Kramarchuk i0532386223

🎯
Focusing
  • Israel, Netanya
View GitHub Profile
@i0532386223
i0532386223 / test.html
Created November 10, 2019 14:47
Hello World Html
<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
@i0532386223
i0532386223 / test.md
Created November 10, 2019 14:46
Hello World Markdown

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}
@i0532386223
i0532386223 / Greatest_common_divisor.cpp
Created October 5, 2019 11:40
Greatest common divisor
#include <iostream>
int main()
{
std::cout << "Insert 2 numbers:\n";
int number1, number2;
std::cin >> number1 >> number2;
int max = number1;
if (number2 < max) {
max = number2;
@i0532386223
i0532386223 / Fibonacci.cpp
Created October 5, 2019 11:27
Fibonacci number
#include <iostream>
int main()
{
std::cout << "Insert count:\n";
int count;
std::cin >> count;
int t1 = 0, t2 = 1;
int current = 0;
for (int i = 0; i < count; i++) {
var pageView = UIView()
UIView.animate(withDuration: 1.0, animations: {
let animation = CATransition()
animation.duration = 1.0
animation.startProgress = 0.0
animation.endProgress = 1
animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
animation.type = CATransitionType(rawValue: "pageCurl")
animation.subtype = CATransitionSubtype(rawValue: "fromRight")
animation.isRemovedOnCompletion = false
@i0532386223
i0532386223 / LanguageManager.h
Created July 11, 2016 22:43
Change Language application with English language by default, if you select an unsupported language (without restart application)
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, ELanguage)
{
ELanguageEnglish,
ELanguageGerman,
ELanguageFrench,
ELanguageRussian,
ELanguageHebrew,
GPUImageUIElement *uiElementInput;
__unsafe_unretained GPUImageUIElement *weakUIElementInput;
GPUImageVideoCamera *videoCamera;
GPUImageFilter *filter;
GPUImageMovieWriter *movieWriter;
GPUImageUIElement *uiElementInput;
GPUImageAlphaBlendFilter *blendFilter;
GPUImageView *filterView;
CGSize sizevideo;