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
# Все що йде після дієза - коментар | |
# Все що йде після крапки - директива ассемблера. | |
# Тобто не код програми, а інструкції про те як її будувати. | |
.section .data # розділ з даними | |
# Поки що порожній | |
.section .text # розділ з текстом програми |
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
.section .data | |
data_items: # Позначити місце де починаються дані міткою | |
# виділити пам’ять для списку 4-байтових чисел. | |
.long 3, 34, 32, 12, 89, 11, 0 | |
.section .text | |
.global _start | |
_start: |
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/python3 | |
from glob import glob | |
from functools import reduce | |
from collections import Counter | |
import re | |
import sys | |
TOKENIZE_REGEX = re.compile(r'[\w`-]+') | |
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
; while loop | |
(define (while condition body) | |
(if (condition) | |
(begin | |
(body) | |
(while condition body) | |
) | |
(list) | |
) | |
) |
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
console.log('Почато завантаження букмарклета'); | |
(function(){ | |
var get_meta_property = function(name) { | |
var element = document.querySelector('meta[property="' + name + '"]'); | |
return element && element.getAttribute("content") || ''; | |
}; | |
var get_article_time = function() { |
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
default: | |
elm-make lifelog.elm --output=lifelog.js |
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
# Країни і їх координати | |
# Застосовується на https://query.wikidata.org/ | |
SELECT ?itemLabel ?coords | |
WHERE | |
{ | |
?item wdt:P31 wd:Q6256 . # всі такі ?item в яких властивість P31 (є одним з) дорівнює Q6256 (країна) | |
?item wdt:P625 ?coords . # і ще запишіть в цього ?item властивість P625 (географічні координати) в змінну ?coords | |
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } # я не знаю як, але це перетворить елемент на його ім'я англійською | |
} |
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 http.client | |
import json | |
import ssl | |
import os.path as path | |
# BACKEND = 'api.proofpilot.com' | |
# CLIENT_ID = "2_1ljj1a1nw2hwsog4k4ww888w4w84s00wo0scs0wwggssogsow0" | |
# CLIENT_SECRET = "5p9a8g40kkw8oowcosg4o0skwc4wcg8okowc4g4c40sw48www4" | |
# FRONTEND = 'https://go.proofpilot.com' |
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 requests | |
import json | |
events = [{ | |
"timestamp": "0", | |
"type": "show", | |
"version": "v1", | |
"payload": { | |
"id": "556caec66b66d16536079e43", | |
"action": "make", | |
"clientAttributes": { |
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 main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/dgrijalva/jwt-go" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"time" |
OlderNewer