Skip to content

Instantly share code, notes, and snippets.

View esokullu's full-sized avatar
☀️
shining

Emre Barack Sokullu esokullu

☀️
shining
View GitHub Profile
@esokullu
esokullu / graph.html
Last active August 12, 2018 20:36
GraphJS in action
<!-- Step 1 -->
<graphjs-messages-composer
to="47d2b770e7dfc24d87a0a38df78b222a"
anonymity="on"
style="min-width:100%;width:100%;"
></graphjs-messages-composer>
<!-- Step 2 -->
<script type="text/javascript" src="https://graphjs.com/v1/graph.js"></script>
GraphJS.sendMessage(
"48760696099368953dd71a90b727acba", // the recipient's ID
"hey Emre, how is life?", // the message
function(response) {
// Do something
});
CREATE TABLE `export-requests` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`instance_id` int(11) NOT NULL,
`requester_id` int(11) NOT NULL,
`request_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`fulfill_time` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `instance_id` (`instance_id`),
KEY `requester_id` (`requester_id`),
CONSTRAINT `export-requests_ibfk_1` FOREIGN KEY (`instance_id`) REFERENCES `instances` (`id`),
yordam zar_at() {
döndür rastgele(1, 6);
}
$sayı = zar_at();
eğer($sayı eşitse 4) {
yazdır "kazanan ben oldum :)";
}
yoksa {
# pho-graphql-v1.1
type Facebook implements GraphNode
@permissions(mod: "0x0f751", mask: "0xfffff") # people outside can't read.
{
id: ID,
founder: User!
type User implements ActorNode
@edges(
@esokullu
esokullu / instagram.graphql
Created December 7, 2019 11:42
Instagram GraphQL Schema
enum _ModelMutationType {
CREATED
UPDATED
DELETED
}
type _QueryMeta {
count: Int!
}
pho init
/**
* @OnlyCurrentDoc
*/
function onOpen(e) {
DocumentApp.getUi().createAddonMenu()
.addItem('Başlat', 'showSidebar')
//.addItem('Türkçeleştir', 'doIt')
.addToUi();
}
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css">
<style>
.width-100 {
width: 100%;
}
</style>
function Deasciifier() {
this.turkish_context_size = 10;
this.init();
}
// Compiled pattern list:
Deasciifier.pattern_list = {
"c":{"bu aXa":0,"Cki Xi":-1,"na Xog":2,"ram Xo":3,"gol aX":4,"huyu X":-5,"m Xars":6,"Ik Xip":-7,"ncu X ":8,"zay Xo":9,"Xincik":10,"vre aX":11,"mUS aX":-12,"ie Xol":-13," eva X":-14,"im teX":-15,"kriz X":16,"k Xipl":17,"Ir 1 X":-18,"Xamdal":19,"mem Xi":-20,"tI Xat":21,"I Xalt":-22,"elinde Xop":-23,"e Xopu":24,"zi Xat":25,"ube aX":26,"sis Xa":27,"n selX":28,"rgIXiy":29,"n mUXt":30,"rIS uX":31,"kireXe":32,"Xiklid":-33,"lave X":34,"i minX":35,"es Xin":-36,"re Xat":37,"yhin X":-38,"az haX":-39,"mi Xar":40,"orge X":-41,"kovaX ":-42,"ak Xat":43,"Or aXa":-44,"rpar X":-45,"da teX":-46,"de Xeb":-47,"yarInX":-48,"eXeres":-49,"fon aX":50,"ri Xem":-51,"tino X":-52,"5 i aX":53,"1 00 X":-54,"i dolX":55,"rarInX":-56,"kIS aX":57,"I penX":-58,"n aXim":-59,"va aXi":60,"iz Xik":61,"olma X":62,"g un X":63," reXet":64,"Xalisk":65,"u seXi":66,"uXular":-67,"birinX":-68,"n Xocu":69,"aXlari":70,"s uX ":-71