This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logs | |
logs | |
*.log | |
# Runtime data | |
pids | |
*.pid | |
*.seed | |
# Directory for instrumented libs generated by jscoverage/JSCover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rewrite ^(.*)$ /public/$1 break; | |
location / { | |
index index.php index.html; | |
try_files $uri $uri/ /index.php?$args; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JavaScript learning resources. | |
Starting point for those, who have already learned JS, but forgotten. Good article. Quite compact. | |
https://developer.mozilla.org/en/JavaScript/A_re-introduction_to_JavaScript | |
Question: what's the best learning source on JS. Some answers. | |
http://stackoverflow.com/questions/11246/best-resources-to-learn-javascript | |
http://stackoverflow.com/questions/2687566/learning-javascript-in-one-weekend | |
http://net.tutsplus.com/tutorials/javascript-ajax/the-best-way-to-learn-javascript/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in the end </head> of template folder, go to the selected theme index.php and apply following code | |
///Developed By Ahmad Naser Turnkey Solutions LLC - Greenbackend.com | |
///http://greenbackend.com/developer-hosting | |
///www.greenbackend.com | |
// www.khottah.com | |
///greenbackend@ahmadnaser.com | |
///copyright © 2018 ANTS LLC. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
public class LoadingScreenManager : MonoBehaviour { | |
[Header("Loading Visuals")] | |
public Image loadingIcon; | |
public Image loadingDoneIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Shared on Ahmad Naser.com | |
func PlayAudioInSwift3() { | |
var player = AVAudioPlayer() | |
let audioPath = Bundle.main().pathForResource("2-loader", ofType: "mp3") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
/// <summary> | |
/// Descending Timer. | |
/// </summary> | |
public class Timer : MonoBehaviour | |
{ | |
public string startTime = ""; | |
public float delayTime = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ActivateOptionsMenu(){ | |
RectTransform Canvas = GameObject.Find ("OptionsCanvas").GetComponent<RectTransform> (); | |
if (Canvas != null) { | |
RectTransform[] recs = Canvas.GetComponentsInChildren<RectTransform> (true); | |
int Count = 0; | |
int NumOfElements = 2; | |
foreach (RectTransform r in recs) { | |
if (r.gameObject.name == "Overly") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
public static class SingletonService { | |
private static Dictionary<Type, object> _singletons = new Dictionary<Type, object>(); | |
//Adds a singleton to the manager | |
public static void RegisterSingletonInstance<T>(T instance) where T : class { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Bootstrap Template By AhmadNaser</title> | |
<!-- Bootstrap --> |
NewerOlder