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
import { | |
charStringToUint8Array, | |
hexStringToUint8Array, | |
} from './utilities.ts'; | |
import nacl from 'tweetnacl'; | |
import { atob } from 'js-base64'; | |
export function parseQueryStr(initData: string): Record<string, string> { | |
const data = initData || import.meta.env.PUBLIC_TELEGRAM_USER_DATA; // For test using PUBLIC_TELEGRAM_USER_DATA env | |
const result: Record<string, string> = {}; |
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
import FlowService from "./flow.service"; | |
// Here is the configuration file for fixes. | |
import flowJSON from "@/flow.json" assert { type: "json" }; | |
let _instance: FlowService; | |
export async function getFlowInstance(): Promise<FlowService> { | |
if (!_instance) { | |
_instance = new FlowService(flowJSON); | |
await _instance.onModuleInit(); | |
} |
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
replace ( | |
cloud.google.com/go => github.com/GoogleCloudPlatform/google-cloud-go latest | |
golang.org/x/crypto => github.com/golang/crypto latest | |
golang.org/x/net => github.com/golang/net latest | |
golang.org/x/sync => github.com/golang/sync latest | |
golang.org/x/sys => github.com/golang/sys latest | |
golang.org/x/text => github.com/golang/text latest | |
google.golang.org/appengine => github.com/golang/appengine latest | |
) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Test | |
""" | |
import sys | |
import os | |
import re | |
import csv |
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
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch path/to/your/file' HEAD | |
git push origin master --force | |
rm -rf .git/refs/original/ | |
git reflog expire --expire=now --all | |
git gc --prune=now | |
git gc --aggressive --prune=now |
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
# This is an event.d (upstart) script to keep monit running. | |
# To install disable the old way of doing things: | |
# | |
# /etc/init.d/monit stop && update-rc.d -f monit remove | |
# | |
# then put this script here: | |
# | |
# /etc/init/monit.conf | |
# | |
# and reload upstart configuration: |
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 | |
# url: http://pank.org/scripts/ | |
# description: PPTPD install script for Amazon EC2, Tested in Basic 32-bit/64-bit Amazon Linux AMI 2011.02.1 Beta | |
# comment: csh bash | |
# platform: linux | |
# | |
# You need to open TCP 1723 to allow PPTP dial-in | |
# | |
# Version: 0.5 | |
# http://pank.org/blog/2011/08/pptpd-install-for-amazon-ec2.html |
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
/** | |
* RealTime Server Connection | |
*/ | |
MainGame.prototype.ioConnect = function() { | |
if (this.sio) return this.sio; | |
// Check if io exists | |
if ( isNULL(io) ) { | |
console.log('[Error] IO Lib Missing. Please Connect with Website Admin'); |
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
var UserAuth = { | |
openAuth: function(url) { | |
var top = (document.body.clientHeight - 420) / 2; | |
var left = (document.body.clientWidth - 520) / 2; | |
window.open(url, 'connect_window', 'height=400, width=560, toolbar =no, menubar=no, ' | |
+ 'scrollbars=yes, resizable=no,top=' + top + ',left=' + left + ', location=no, status=no'); | |
}, | |
login : function (type) { | |
switch (type) { | |
case 'sina': |
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
fl.outputPanel.clear (); | |
fl.compilerErrors.clear(); | |
var file_path = | |
"file:///X:/SNSGameWorkspace/Vineyard/assets/GameDataAssets/MovieClip_fla/"; | |
var output_path = | |
"file:///X:/SNSGameWorkspace/Vineyard/assets/GameDataAssets/MovieClip_fla/"; | |
var logfile = "file:///X:/QA/Scripts/DailyVersion/GameDataAssetsLog.log"; | |
fl.outputPanel.trace ("[ --------------------- CheckingFiles --------------------- ]"); | |
exportlist=new Array(); | |
checkFolder(file_path,output_path,exportlist,"true","true"); |
NewerOlder