Skip to content

Instantly share code, notes, and snippets.

View eliakorkmaz's full-sized avatar
🎯
Focusing

Emrah Korkmaz eliakorkmaz

🎯
Focusing
View GitHub Profile
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
{
"employees":[
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
]
}
{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
{
"cart": [
{
"url": "https://www.amazon.com/gp/product/B00BKQT6F8/ref=ox_sc_act_image_1?ie=UTF8&psc=1&smid=A3UH27URU5GI5Q",
"image": "https://images-na.ssl-images-amazon.com/images/I/41UJuETOtuL._SS100_.jpg",
"name": "Daniel Wellington Stainless Steel Watch with Brown Strap",
"seller": "Daniel Wellington",
"isAvailable": true,
"isEligible": true,
"price": "99.90"
merhaba dünya
{
id: 1,
joined: '2000-12-02',
name:'John',
city:'Chandler',
orderTotal: 9.9956,
orders: [
{
id: 1,
product: 'Shoes',
@eliakorkmaz
eliakorkmaz / simple.swift
Created March 8, 2018 20:54
textview dynamic height depends on text
let first = self.aboutTextView.frame.size.height
self.aboutTextView.text = "I’m a professional web designer & developer with extensive experience. I enjoy designing and developing new stuff for web and mobileI’mI’m a professional web designer & developer with extensive experience. I enjoy designing and developing new stuff for web and mobileI’mI’m a professional web designer"
let newSize = aboutTextView.sizeThatFits(CGSize(width: self.view.frame.size.width - 44.0 , height: CGFloat.greatestFiniteMagnitude))
aboutTextView.frame = CGRect(origin: aboutTextView.frame.origin, size: newSize)
print("height = \(aboutTextView.frame.size.height) width =\(aboutTextView.frame.size.width)")
print("New Size height = \(newSize.height) width = \(newSize.width)")
let second = self.aboutTextView.frame.size.height
print("fark = \(second-first)")
// self.anotherBottomConstrain
@eliakorkmaz
eliakorkmaz / curl.md
Created October 24, 2018 13:42 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'TutorialApp' do
use_frameworks!
pod 'Firebase'
end