View iaps.lua
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
local cfg = require "modules.onet.config" | |
local msgs = require "modules.msgs" | |
local M = {} | |
local list = {} | |
local callback_function | |
local function iap_listener(self, transaction, error) | |
if error == nil then |
View swipe_mouse.lua
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
local beginX | |
local beginY | |
local endX | |
local endY | |
local startTime = 0 | |
local xDistance | |
local yDistance |
View swipe.lua
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
local beginX | |
local beginY | |
local endX | |
local endY | |
local startTime | |
local xDistance | |
local yDistance |
View uptime.lua
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
function M.check_keys(callback) | |
local max_keys = data.BALANCE.CONST.max_key_counts[wallet.max_key_index] | |
if wallet.keys < max_keys then | |
local dif = 0 | |
local time_key | |
if uptime then | |
time_key = "last_key_use_time_cpu" | |
dif = uptime.get() - wallet.last_key_use_time_cpu + 1 | |
end | |
if dif <= 0 then |
View duplicates_finder.py
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
# dupFinder.py | |
import os, sys, stat | |
import hashlib | |
def findDup(parentFolder): | |
# Dups in format {hash:[names]} | |
dups = {} | |
for dirName, subdirs, fileList in os.walk(parentFolder): | |
print('Scanning %s...' % dirName) | |
for filename in fileList: |
View bundle.sh
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 | |
readonly java_path='java' | |
readonly output_path='build' | |
readonly email='my@email.com' | |
readonly auth_key='my_key' | |
readonly texture_compresstion='false' | |
readonly andr_key_path='key.pk8' | |
readonly andr_cert_path='certificate.pem' | |
View gist:f1d4ad5d695211cc27b7f11490fa96fb
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
Формула: | |
=IMPORTXML(CONCATENATE("http://www.nbrb.by/Services/XmlExRates.aspx?ondate=", TEXT(A1,"mm/dd/yyyy")),"/DailyExRates/Currency[@Id='145']/Rate/text()") | |
Нужно заменить A1 ячейкой с датой. | |
Валюты: | |
145 - USD | |
292 - EUR | |
298 - RUB |
View .luacheckrc
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
std = "max" | |
files['.luacheckrc'].global = false | |
unused_args = false | |
globals = { | |
"sys", | |
"go", | |
"gui", | |
"label", | |
"render", |
View CustomEditorBase.cs
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 UnityEditor; | |
using UnityEditorInternal; | |
using System.Collections.Generic; | |
using UnityEditor.AnimatedValues; | |
[CustomEditor(typeof(UnityEngine.Object), true, isFallback = true)] | |
[CanEditMultipleObjects] | |
public class CustomEditorBase : Editor | |
{ |
View builder.py
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
""" | |
Builder is built by wrapping adb and storing some data locally | |
I would recommend to add an alias to your ~.bash_profile to use it easier | |
alias builder="python3.5 ~/Documents/repo/builder/builder.py" | |
Usage: | |
builder.py [command] [arguments] | |
Available Commands: |
NewerOlder