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
<?php | |
$filerunUrl = 'https://efiles.fi'; | |
$filerunLoginUrl = $filerunUrl.'/?action=login'; | |
$redirectOnFailureUrl = 'http://localhost:8080/index.php?'; | |
?> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Efiles login</title> |
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
function formatFileSize($size) | |
{ | |
$units = array(' B', ' KB', ' MB', ' GB', ' TB'); | |
for ($i = 0; $size > 1024; $i++) { $size /= 1024; } | |
return round($size, 2).$units[$i]; | |
} |
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
var seo_asemat = [{"id":"191","lat":"59.97799","lng":"23.434307","name":"Eken\u00e4s G\u00e4sthamn Ab","addr":"Pohjoinen Rantakatu 6","city":"10600 Tammisaari","info":"Veneasema","phone":"019-2411790","cellphone":"","email":"","www":"","company_name":"Sandn\u00e4s kauppa ja kahvila osuuskunta"},{"id":"51","lat":"64.763360","lng":"25.547891","name":"SEO Ala-Temmes","addr":"Jyv\u00e4skyl\u00e4ntie 69","city":"91930 Ala-Temmes","info":"<p>- laadukkaat tarvikkeet koira- ja hevosharrastajille[br]- lähikauppa[br]- kahvio[br]- veikkaus, toto<\/p>\n<p> <img src=\"http:\/\/asiakas2.devnet.fi\/www.seo.fi\/kuvat\/googlemapsikonit\/seo-jakeluasema.jpg\" alt=\"\" width=\"50\" height=\"50\" \/><img src=\"http:\/\/asiakas2.devnet.fi\/www.seo.fi\/kuvat\/googlemapsikonit\/seo-kahvio.jpg\" alt=\"\" width=\"50\" height=\"50\" \/><img src=\"http:\/\/asiakas2.devnet.fi\/www.seo.fi\/kuvat\/googlemapsikonit\/seo-automaattiasema.jpg\" alt=\"\" width=\"50\" height=\"50\" \/><\/p>","phone":"08 384 629","cellphone":"","email" |
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
<?php | |
if (!function_exists('curl_post')) | |
{ | |
function curl_post($url, array $post = NULL, array $options = array()) | |
{ | |
$defaults = array( | |
CURLOPT_POST => 1, | |
CURLOPT_HEADER => 0, | |
CURLOPT_URL => $url, |
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
#!/usr/bin/env sh | |
jq '.results.transcripts[0].transcript' -r < ~/Downloads/asrOutput.json > transcript.txt |
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
<script> | |
function getParameterByName(name, url) { | |
if (!url) url = window.location.href; | |
name = name.replace(/[\[\]]/g, '\\$&'); | |
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), | |
results = regex.exec(url); | |
if (!results) return null; | |
if (!results[2]) return ''; | |
return decodeURIComponent(results[2].replace(/\+/g, ' ')); | |
} |
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
<script> | |
/* wait for element to be ready and then change text */ | |
function tryEl(e) { | |
var privEl = document.querySelector('.video-player'); | |
if (!privEl) { | |
window.requestAnimationFrame(tryEl); | |
} else { |
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
const http = require('http') | |
const fortune = require('fortune') | |
const fortuneHTTP = require('fortune-http') | |
const recordTypes = { | |
user: { | |
name: String, | |
enemies: [ Array('user') ] | |
} | |
} |
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
<script> | |
/* wait for element to be ready and then add embedded youtube */ | |
function tryEl(e) { | |
var privEl = document.querySelector('.video-player'); | |
if (!privEl) { | |
window.requestAnimationFrame(tryEl); | |
} else { | |
changeText(privEl); |
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
<script> | |
function tryEl(e) { | |
var privEl = document.querySelector('#bitmovinplayer-video-bitmovin-player'); | |
if (!privEl) { | |
window.requestAnimationFrame(tryEl); | |
} else { | |
removeBackground(privEl); | |
} |
OlderNewer