Skip to content

Instantly share code, notes, and snippets.

View nazmulkp's full-sized avatar

Nazmul Hasan nazmulkp

View GitHub Profile
//
// ViewController.swift
// PagginationSwift3
//
// Created by Nazmul Hasan on 8/2/17.
// Copyright © 2017 Nazmul hasan. All rights reserved.
//
import Foundation
// Enter your code here
// Enter your code here
let response = readLine()
//print(response)
@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;
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
//
// KVVideoManager.swift
// MergeVideos
//
// Created by Khoa Vo on 12/20/17.
// Copyright © 2017 Khoa Vo. All rights reserved.
//
import UIKit
import MediaPlayer
open -a TextEdit Podfile
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:
@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