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
package { | |
import away3d.containers.ObjectContainer3D; | |
import away3d.containers.View3D; | |
import away3d.core.managers.Stage3DManager; | |
import away3d.core.managers.Stage3DProxy; | |
import away3d.debug.AwayStats; | |
import away3d.entities.Mesh; | |
import away3d.events.Stage3DEvent; | |
import away3d.materials.TextureMaterial; | |
import away3d.primitives.PlaneGeometry; |
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
package { | |
import away3d.cameras.Camera3D; | |
import away3d.controllers.HoverController; | |
import flash.display.Sprite; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.events.KeyboardEvent; | |
import flash.events.MouseEvent; | |
import flash.ui.Keyboard; |
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 | |
#set -x | |
/etc/init.d/mysql stop | |
cp -R /var/lib/mysql/$1 /home/backup/ #copy /home/backup/ reqursively | |
cd /home/backup/ | |
tar -zcvf $1.tar.gz $1 #archive this | |
scp $1.tar.gz <user>@<host>:/home/$1.tar.gz //like root@XXX.xxx.xxx.xxx | |
#dont forget to set unix-style line endings |
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
package { | |
import feathers.controls.AutoSizeMode; | |
import feathers.controls.Button; | |
import feathers.controls.Label; | |
import feathers.controls.LayoutGroup; | |
import feathers.controls.text.BitmapFontTextRenderer; | |
import feathers.layout.AnchorLayout; | |
import feathers.layout.AnchorLayoutData; | |
import feathers.layout.HorizontalAlign; | |
import feathers.layout.VerticalAlign; |
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
fist line: <reg exp> | |
second lines : < | |
code | |
for | |
replasing | |
> | |
(?<!\.)(-?\d+(?:,?-?\d+)*)(?! Semi)(?!\.) | |
"$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
@echo off | |
if exist atf_assets ( | |
echo:Delete the folder atf_assets and all its contents? | |
rd /s atf_assets | |
) | |
mkdir atf_assets | |
for %%A in (*.png) do ( | |
rem echo:%%~fA | |
png2atf -c p -r -i %%A -o atf_assets/%%~nA_pvrtc.atf | |
png2atf -c e -r -i %%A -o atf_assets/%%~nA_etc1.atf |
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
Replasing standart types; | |
//(uint)|(\Wint)|(Number)|(boolean)|(protected) | |
//$1$2$3$4$5 | |
uint | |
UInt | |
int | |
Int |
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
package | |
{ | |
import flash.utils.Dictionary; | |
/** | |
* Управление вызовом асинхронных функйии. | |
* Позволяет выполнять функции последовательно, паралельно и в режиме водопада. | |
* @author Andrey Shatalov | |
*/ | |
public class ControllFlow |
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 System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace AwaitExperiments | |
{ | |
class Program | |
{ | |
private static CancellationTokenSource _tokenSource; | |
private static int _i; |