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
// Jos ei pyöri tehtäväsivulla, se avataan. | |
if (document.getElementsByTagName("iframe").length > 0) { | |
var frame = document.getElementsByTagName("iframe")[0]; | |
var id = frame.id; | |
if (id.includes("UbilabsContentPortlet_frame")) { | |
alert("Sinulle avataan uusi välilehti, johon tämä tehtävä tehdään. Liitä tämä koodi uudelleen, jotta vastaukset tulevat esiin."); | |
window.open(frame.src, '_blank'); | |
} else { | |
runCheat(); | |
} |
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
<?php | |
$targetPath=__DIR__."/".$argv[1]; | |
echo $targetPath; | |
$data = file_get_contents($targetPath); | |
$content= base64_decode($data); | |
$file = fopen($targetPath.".decoded", 'w'); | |
fwrite($file, $content); | |
fclose($file); | |
echo "done"; |
This file has been truncated, but you can view the full file.
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
var __DEV__ = false, __BUNDLE_START_TIME__ = this.nativePerformanceNow ? nativePerformanceNow() : Date.now(), process = this.process || {}; | |
process.env = process.env || {}; | |
process.env.NODE_ENV = 'production'; | |
!function (r) { | |
'use strict'; | |
r.__r = o, r.__d = function (r, n, i) { | |
if (null != e[n]) | |
return; | |
e[n] = { | |
dependencyMap: i, |
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
'use strict'; | |
parameters = function() { | |
/** @type {(Array<string>|null)} */ | |
var o = document.location.toString().match(/docview\/(\d+)\/(\d+)/i); | |
/** @type {string} */ | |
var hasBaseRule = o[2]; | |
/** @type {string} */ | |
var onetype = o[1]; | |
/** @type {number} */ | |
var ex = Math.round((Date.now() + (new Date).getTimezoneOffset()) / 1000) + 24 * 60 * 60; |
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
API for finding "Kitchens": | |
https://fi.jamix.cloud/apps/menuservice/rest/haku/public | |
API for reading the table: | |
http://fi.jamix.cloud/apps/menuservice/rest/haku/menu/<customerID>/<kitchenID>?lang=fi | |
GET Params: | |
lang, language (fi, or en). Default = en. | |
type, json or table. Default = json. |
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://www.amica.fi/api/restaurant/menu/recipe?language=fi&recipeId=7088 |
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 requests.utils | |
import os.path | |
"""Filename""" | |
filename = "sanavarasto.txt" | |
abittiUsername = "" | |
abittiPassword = "" |
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://api.ellibs.com/v1.3/json/patronAuth/app12480 | |
https://api.ellibs.com/v1.3/json/listCollections/app12480 | |
Auth: Basic (app12480:ZWXqi30gc78ifBcrTf9uSasw6dSWwFt7itsYPkbwa3Lq) | |
Login POST: | |
id: library id | |
patron_id: library card number | |
password: pin-code or password |
OlderNewer