Skip to content

Instantly share code, notes, and snippets.

View perXautomatik's full-sized avatar

perXautomatik

View GitHub Profile
@perXautomatik
perXautomatik / list-files-in-folder.gs
Last active December 7, 2019 18:48 — forked from hubgit/list-files-in-folder.js
GS - List all files in a folder (Google Apps Script)
function listFilesInFolder() {
var folder = DocsList.getFolder("Maudesley Debates");
var contents = folder.getFiles();
var file;
var data;
var sheet = SpreadsheetApp.getActiveSheet();
sheet.clear();
@perXautomatik
perXautomatik / scrobbleUserContinualy_$(log)_log.out
Created September 30, 2015 16:27
Fork - Scrobble Two or more users simultainiusly by this simple uiless program
alsslsa
alsslsa
alsslsa
alsslsa
version 0.1
version 0.2
C:\Users\Christoffer\Documents\ModularScrobbler\
d165934486baa1453af66ca761cb180d
09140722c7f851f00908d3fd4d14c692
version 0.2
@perXautomatik
perXautomatik / deleteGooglePhotos.js
Last active December 7, 2019 18:54
Fork - JsCode
// Selector for Images and buttons
const ELEMENT_SELECTORS = {
checkboxClass: '.ckGgle',
deleteButton: 'button[title="Delete"]',
confirmationButton: '#yDmH0d > div.llhEMd.iWO5td > div > div.g3VIld.V639qd.bvQPzd.oEOLpc.Up8vH.J9Nfi.A9Uzve.iWO5td > div.XfpsVe.J9fJmf > button.VfPpkd-LgbsSe.VfPpkd-LgbsSe-OWXEXe-k8QpJ.nCP5yc.DuMIQc.kHssdc.HvOprf'
}
// Time Configuration (in milliseconds)
const TIME_CONFIG = {
delete_cycle: 7000,
@perXautomatik
perXautomatik / stackoverflow.js
Created December 16, 2019 07:31
Call Python function from JavaScript code
//@https://stackoverflow.com/questions/13175510/call-python-function-from-javascript-code
//All you need is to make an ajax request to your pythoncode. You can do this with jquery http://api.jquery.com/jQuery.ajax/, or use just javascript
$.ajax({
type: "POST",
url: "~/pythoncode.py",
data: { param: text}
}).done(function( o ) {
// do something
});
i
me
my
myself
we
our
ours
ourselves
you
your
@perXautomatik
perXautomatik / jsonstream.py
Created October 15, 2020 09:58 — forked from thelastpenguin/jsonstream.py
A library for writing and reading JSON streams from files (optionally supports gz compression)
"""
JsonStream by Gareth George
LICENSE: The do whatever the heck you want with it license.
Do what you want with it, when you want to do it. I take no responsibility for any damages that may occur in the usage of this script. This means no guaranties as to its reliability or stability.
USAGE:
file = open_stream('filename.json', 'rb') # opens the file with the given file name to be read as a json stream
file = open_stream('filename.json.gz', 'rb') # opens the COMPRESSED file with the file name to be read as a json stream
@perXautomatik
perXautomatik / gist:eeba326a5a7a51e3d083e8b61fa93819
Last active April 6, 2021 21:06
Magic - wheel treasure and copy
Emergency power + smothering tith
Shaelea, goblin mage, proliferation cantrips, proliferation mage, the wanderer.
generate a few tresaurs, turn treasure into gobilns, cast cheaper spells.
@perXautomatik
perXautomatik / gist:2647e681ca2c916b1bd70c662e6ad4d0
Last active April 6, 2021 21:07
The ultimate VR post apocalyptic game
game mechanics should be more open source.
way lower pace, you shouldn't need to fight against the clock in acts of walking or searching but crafting should take time, risk hurting you or your tools, tools have weight so you have to make more chooses.
you can attempt to pickup most things but the time and energy it might take is taxing.
weight is only ressulting in your breath shortening and your runspeed lowering, it shouldn't slow you down or hinder you from picking other things up, unless you chose to wrapp around your hands.
it matters how you place your weight, around your wear, a backpack is much much better than a shoulder bag because of the way it disperse the waight and ain't in the way for one of your arms.
trawling in strong sunlight makes you more thirsty but doesn't kill you before your extreamly parshed.
@perXautomatik
perXautomatik / 1.txt
Last active April 6, 2021 21:07
Tid, qunatum perspektiv, en formulering
efter att jag sätt filmen, "see you yeasterday" fick det mig att vilja formulera min egen upfattning av kvantmekanik.
har aldrig varit särskilt imponnerad av tidsresnings siefie då det ofta inneburigt konstiga plott tvister och annat fånigt på
grund av så kallad technologi, då föredrar jag fantasy med tidsresande som element, då man kan helt frångå att
försöka göra ideen hur som helst gångbar.
som jag förstår det, och så som jag tolkar det jag förstår, utan att ha källor och med intresse av att bli krittiserad:
tid är inte ett ting, tid är ett sätt för mäniskan att beskriva kaosala belopp i dess omgivning.
en observerare, en person, en klocka eller vad man nu vill använda för att sammla information med, finns i ett rum (låt oss kall det
@perXautomatik
perXautomatik / gist:1fa46d92bd02b9022c4d8df7ebdd7752
Last active April 6, 2021 21:08
the sound of spotify - a request
i wish to create a branch of this project
i'll list the exact implementations i hope to achive by doing this
* the sound of "x" filtered by country
I'm well aware of asking sucha thing, i'm asking access to a multimillionare companys closed source,
i'd be willing to sighn a contract of comfidentiallity or similar.
case this is not possible, i'd ask most kindly for hints how to accomplish the desired implementations without the help of