Skip to content

Instantly share code, notes, and snippets.

View numanayhan's full-sized avatar
🏈
Coding

Numan Ayhan numanayhan

🏈
Coding
  • Istanbul
View GitHub Profile
@numanayhan
numanayhan / Manifest.xml
Last active January 15, 2020 08:44
NotificationService
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.panda.notifications">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
@numanayhan
numanayhan / AppDelegate.swift
Created December 16, 2019 07:31
AppDelegate
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
@numanayhan
numanayhan / Info.plist
Last active December 16, 2019 07:58
Panda
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
@numanayhan
numanayhan / Login.java
Last active February 14, 2020 07:18
Login
public class MainActivity extends AppCompatActivity {
Button login,register,forgot;
EditText emailText,passwordText;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
emailText = (EditText)findViewById(R.id.email);
@numanayhan
numanayhan / Navbar.swift
Last active February 17, 2020 07:06
Navbar
navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
navigationController?.navigationBar.shadowImage = UIImage()
navigationController?.navigationBar.barTintColor = .clear
navigationController?.navigationBar.isTranslucent = true
import UIKit
class LabelCtrl: UIViewController {
//Sürükle bırak ile tanımladım ve Sayfaya bağladım.
@IBOutlet weak var textLabel: UILabel!
//Lazy ile kodlama ile tanıpladım
lazy var metin : UILabel = {
var label = UILabel()
label.text = " Created by HR on 1.11.2020. Copyright © 2019 hrdijital. All rights reserved."
@numanayhan
numanayhan / package.json
Last active June 17, 2020 07:45
nodejs-api
{
"name": "nodejs-api",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"start": "node app.js"
},
"author": "",
"license": "ISC",
@numanayhan
numanayhan / app.js
Created June 17, 2020 07:45
nodejs-api
const express = require('express');
const app = express();
app.get('/',function(req,res){
res.status(200).send(JSON.stringify({
result:"200",
message:"api get çalıştı"
}))
})
app.post('/',function(req,res){
@numanayhan
numanayhan / Dockerfile
Created June 17, 2020 07:48
nodejs-api
FROM node:12
#Proje nodejs 12 ile çalışması için
WORKDIR /home/node/app
#proje yolu belirlenir
COPY Dijital /home/node/app
# Docker içine kopyalanır
RUN npm install
# Docker imajı proje halindeyken çalıştırır
CMD npm run start
# Container çalıştırılırken CMD çalışır.