This file contains hidden or 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 | |
import pprint | |
GRAPH_NAME = "GRAPH" | |
API_TOKEN_READ = "TOKEN" | |
API_TOKEN_WRITE = 'TOKEN' | |
BASE_URL = "https://api.roamresearch.com" | |
ENDPOINT_q = f"/api/graph/{GRAPH_NAME}/q" |
This file contains hidden or 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 url('https://abhayprasanna.github.io/better-dark-age.css'); | |
@import url('https://fonts.googleapis.com/css?family=Lato|Crimson+Text|Noto+Sans+Mono|Alegreya|Work+Sans'); | |
:root { | |
/* FONTS */ | |
--global-font : 'Work Sans', sans-serif; | |
--secondary-font : 'Noto Sans Mono', monospace; | |
--header-font : 'Bitter', serif; | |
/* WIDTH FIXES - default 568px,1032px - increase to increase WIDTH */ | |
--reduce-padding-right : 3400px; |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import json | |
import urllib2 | |
import datetime | |
import sys | |
import subprocess | |
from tkinter import Tk | |
import os |
This file contains hidden or 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
{ "icons": { | |
"clear-day":"http://i.imgur.com/O4nYKij.png", | |
"clear-night":"http://i.imgur.com/v0MBXnQ.png", | |
"cloudy":"http://i.imgur.com/Ss87T64.png", | |
"fog":"http://i.imgur.com/QI9Hzq3.png", | |
"partly-cloudy-day":"http://i.imgur.com/AEH0Hp5.png", | |
"partly-cloudy-night":"http://i.imgur.com/bzZs24W.png", | |
"rain":"http://i.imgur.com/nyi3wvO.png", | |
"sleet":"http://i.imgur.com/xdhkOfk.png", | |
"snow":"http://i.imgur.com/LSmINQp.png", |
This file contains hidden or 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
{ "icons": { | |
"clear-day":"http://i.imgur.com/O4nYKij.png", | |
"clear-night":"http://i.imgur.com/v0MBXnQ.png", | |
"cloudy":"http://i.imgur.com/Ss87T64.png", | |
"fog":"http://i.imgur.com/QI9Hzq3.png", | |
"partly-cloudy-day":"http://i.imgur.com/AEH0Hp5.png", | |
"partly-cloudy-night":"http://i.imgur.com/bzZs24W.png", | |
"rain":"http://i.imgur.com/nyi3wvO.png", | |
"sleet":"http://i.imgur.com/xdhkOfk.png", | |
"snow":"http://i.imgur.com/LSmINQp.png", |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 scriptcontext | |
import rhinoscriptsyntax as rs | |
import clr | |
clr.AddReference("Eto") | |
clr.AddReference("Rhino.UI") | |
from Rhino.UI import * | |
from Eto.Forms import Form, Dialog, Label, TextBox, StackLayout, Orientation, Button, HorizontalAlignment, MessageBox, DropDown, CheckBox, TableLayout, StackLayoutItem, DynamicLayout, Control, Panel, Form | |
from Eto.Drawing import * |
This file contains hidden or 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 Enemy = require 'nodes/enemy' | |
local gamestate = require 'vendor/gamestate' | |
local sound = require 'vendor/TEsound' | |
local Timer = require 'vendor/timer' | |
local Projectile = require 'nodes/projectile' | |
local sound = require 'vendor/TEsound' | |
local utils = require 'utils' | |
local window = require 'window' | |
local camera = require 'camera' |
This file contains hidden or 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 Timer = require 'vendor/timer' | |
local Level = require 'level' | |
local anim8 = require 'vendor/anim8' | |
local sound = require 'vendor/TEsound' | |
local Dialog = require 'dialog' | |
local Wall = {} | |
Wall.__index = Wall | |
Wall.isWall = true |
This file contains hidden or 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 example of what talk_items could look like in the npc's file | |
{ ['text']='flowers', freeze = true, affection = 5 }, | |
--The first for loop looks for the "options” key in the root table of the talk_items. Inside this table we can look for all items in the table that have an affection attribute. | |
--If the affection attribute is lower than the player affection then we remove the item from the table. | |
function Menu:itemUpdate( npc, player) | |
--adds and removes items from the talk items based on affection level | |
local Player = require 'player' |
NewerOlder