Skip to content

Instantly share code, notes, and snippets.

View panki's full-sized avatar
🏠
Working from home

Alexander Panko panki

🏠
Working from home
View GitHub Profile
{
"ok": true,
"result": [
{
"update_id": 906800468,
"message": {
"message_id": 63,
"from": {
"id": 307774,
"first_name": "Alexander",
var cronJob = require('cron').CronJob,
bubSubConverse = require('./lib').bubSubConverse,
talkToMammut = require('./lib').talkToMammut,
thisCronjobs = require('./thisCronjobs');
var cronjobs = function () {
this.cronjobs = {};
return this;
};
func (b *bot) runLoop(ctx *schema.Ctx) {
b.log.Info(ctx, "Initializing bot, channel id=%d", b.channelId)
init:
retryCounter := 0
for {
err := b.init(ctx)
if err == nil {
default 20:15:24.351671 +0200 commerce storeuid[658] starting request p2-product-offers
default 20:15:24.363829 +0200 commerce <CKStoreRequest: 0x7f8a9fd23c00> https://itunes.apple.com/WebObjects/MZStore.woa/wa/fetchSoftwareAddOns?appAdamId=1354318707&appExtVrsId=828487436&bvrs=1.3&bid=io.coressh.tunnel&offerNames=io.coressh.tunnel.premium.oneyear3
default 20:15:24.382651 +0200 commerce Starting purchase transaction <Transaction id:5BCD7754-0B8E-4274-8D43-F3852D8D3F55 gid:0B7CBF18-B6E2-4D9A-A2CF-8AF391AE8125> on queue io.coressh.tunnel.purchase_queue
default 20:15:24.439466 +0200 commerce -[LAContext initWithExternalizedContext:] 0 on <private>
default 20:15:24.439757 +0200 commerce runningInSystemContext = 0
default 20:15:24.440249 +0200 commerce runningInOsxRecovery = 0
default 20:15:24.460001 +0200 commerce -[LAContext canEvaluatePolicy:error:]_block_invoke 1 on <private>
default 20:15:24.460152 +0200 commerce -[LAClient evaluatePolicy:options:uiDelegate:reply:] 1, {
1000 = 1;
}, (null) on <private>
@panki
panki / grid
Created December 5, 2019 12:25
+--+--+--+--+
|1 |2 |3 |4 |
+--+--+--+--+
|5 |6 |7 |8 |
+--+--+--+--+
|9 |10|11|12|
+--+--+--+--+
|13|14|15| |
+--+--+--+--+
@panki
panki / graph.map.ts
Created January 2, 2020 12:33
Graph service example
import { Avatar } from '../schema/avatars.schema';
import { Place } from '../schema/places.schema';
import { Protest } from '../schema/protests.schema';
import { User, UserAvatar } from '../schema/users.schema';
export class GraphMap {
public avatarsMap: Map<number, Avatar>;
public avatars: Avatar[];
public placesMap: Map<number, Place>;
public places: Place[];
{
"collection": "@nestjs/schematics",
"sourceRoot": "apps/core/src",
"projects": {
"clock": {
"type": "library",
"root": "libs/clock",
"entryFile": "index",
"sourceRoot": "libs/clock/src",
"compilerOptions": {

Keybase proof

I hereby claim:

  • I am panki on github.
  • I am panki61 (https://keybase.io/panki61) on keybase.
  • I have a public key ASC1ghbS3OxOTgC1IBCVmihQK_euwHPkMOQbLG4T08Hh0wo

To claim this, I am signing this object:

@panki
panki / working.py
Created May 11, 2020 22:58
Palindrome checker
# * palindrome checker
# "aba"
# "racecar"
# "a_* b?a"
# "Aba"
from string import ascii_lowercase
def check(s):
@panki
panki / main.go
Created May 28, 2020 14:26
1370. Increasing Decreasing String
// https://leetcode.com/problems/increasing-decreasing-string/
import "strings"
func sortString(s string) string {
counts := make([]int, 26)
for _, c := range s {
counts[int(c - 'a')] += 1
}