Skip to content

Instantly share code, notes, and snippets.

View nazmulkp's full-sized avatar

Nazmul Hasan nazmulkp

View GitHub Profile
@nazmulkp
nazmulkp / gist:cb864e4b77f46444c0340ea9a221b14c
Last active January 5, 2022 04:07
image file upload to the server Both Alamofire and URLSession
//
// AppListViewController.swift
// TableView Custom Cell App
//
// Created by BJIT on 14/12/21.
//
import UIKit
import Alamofire
I looking for in my string exact number of word/sentence for example:<br>
What i am tried:
let str = "Art of swift, now art of swift5 but this is true art of swift from 2014 now what do you think about art of swift?"
var search = "art of swift"
str.contains(word:search)
var count = str.lowercased().components(separatedBy: search.lowercased()).count
print(count - 1)
output:
open -a TextEdit Podfile
//
// KVVideoManager.swift
// MergeVideos
//
// Created by Khoa Vo on 12/20/17.
// Copyright © 2017 Khoa Vo. All rights reserved.
//
import UIKit
import MediaPlayer
1)what is compiler black diagram of compiler ?
2)compiler vs interprefer
3)symbol table loxical error, input buffering, sentinal,
4)compiler process step by step (math)
==========================lexical analyzer to code generation=================================
5)Automate theory with example, NFA,DFA, formal definition
6)language RE,NFA,DFA, conversion(NFA to DFA, E-NFA to DFA)
7)NFA vs DFA
8)CFG,Parse tree, Ambiguity definition
9)LMD,RMD,Parse Tree,Ambiguity math
@nazmulkp
nazmulkp / gist:37f13af7b29324ebd2211e4423c417fc
Created September 8, 2018 06:29
How to convert mouse input to mobile touch in unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
public class HandleMovement : MonoBehaviour {
private Touch myTouch;
private Vector2 mousePos;
private Rigidbody2D rb;
import Foundation
// Enter your code here
// Enter your code here
let response = readLine()
//print(response)
//
// ViewController.swift
// PagginationSwift3
//
// Created by Nazmul Hasan on 8/2/17.
// Copyright © 2017 Nazmul hasan. All rights reserved.
//
@nazmulkp
nazmulkp / Jerky Scrolling TableView After insert Sectionsng Section
Last active July 27, 2017 03:23
The initial feed will download with 4 post for previewing, but if the user scrolling down then load more posts, so i need to add section to the bottom table view and section remove from the top.
import UIKit
//import XCGLogger
typealias CheckResult = (Bool)->()
class NewsViewController: BaseViewController {
What responsibilities will you get when working with us?
Writing clean, architecturally sound and maintainable code.
Maintaining the current iOS apps by fixing bugs and improving application performance.
Working with the other iOS engineers to create a seamless app.
Delivering features in tight deadlines.
Creating a multiple-language mobile app for the entire Middle East.
Collaborating with cross-functional teams to create, design and ship new features.
Unit-test code for robustness, include edge cases, usability and reliability.
Working with our testing team to ensure 100% test coverage.