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
#if UNITY_EDITOR | |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Text; | |
using UnityEditor; | |
using UnityEditor.Compilation; | |
using UnityEngine; | |
/// <summary> |
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
location ~ /amp/$ { | |
rewrite ^(.*/)amp/$ $1 permanent; | |
} |
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
/*Original Code: http://wiki.unity3d.com/index.php?title=FramesPerSecond */ | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class DisplayFPS : MonoBehaviour { | |
float deltaTime = 0.0f; | |
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
/* | |
* Copyright (c) 2013 Calvin Rien | |
* | |
* Based on the JSON parser by Patrick van Bergen | |
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html | |
* | |
* Simplified it so that it doesn't throw exceptions | |
* and can be used in Unity iPhone with maximum code stripping. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining |
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
#!/bin/bash | |
/bin/rm -rf /root/dumps/* | |
/usr/bin/mongodump --gzip --archive=/root/dumps/dumpname.tar.gz -u xxxx -p xxxxxxx | |
/usr/local/bin/b2 sync /root/dumps/ b2://bucket-name |
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
// ornek istatistik fonksiyonu diger scriptlerden cagrilacak | |
public void SendNewScore(int score, float time) | |
{ | |
// statlar dictionary olarak hazirlaniyor | |
var eventData = new Dictionary<string, object> { | |
{ "guid", Prefs.Guid}, | |
{ "guidsub", Prefs.GuidSub}, | |
{ "sessionid", _sessionId}, | |
{ "nick", Prefs.ServerNick }, |
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
const express = require('express') | |
var bodyParser = require("body-parser"); | |
require('express-async-errors'); | |
var port = process.env.PORT || 3010 | |
const app = express() | |
app.use(bodyParser.urlencoded({ extended: false })); | |
app.use(bodyParser.json()); |
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
version: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
restart: always | |
volumes: | |
- db_data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: password |
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
version: '3' | |
services: | |
web: | |
container_name: nginx_image | |
image: nginx | |
volumes: | |
- .:/usr/share/nginx/html | |
ports: | |
- '3000:80' |
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
c1="docker run -it --rm -d -p 3000:80 -v `pwd`:/usr/share/nginx/html nginx" | |
echo ${c1} | |
docker-machine ssh default "${c1}" |
NewerOlder