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
1. Rör ihop 50/50 fräsch och philadelphiaost försiktigt tillsammans med fint hackad rödlök och en citronskvätt. | |
Lite salt och peppar. | |
2. Lägg plastfolie i en halvdjup skål. Fyll skålen med röran. | |
Låt vila i kylen en timme eller mer. | |
3. Vänd skålen upp och ner på en tallrik och ta bort plasten. | |
Täck den bula du nu har skapat med stenbitsrom eller önskad Rom. | |
Klipp lite till på topp. |
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
// version 2.2 20241220 | |
// latest version complete rewrite due to memory issues on shelly. simpler config where just the top n hours are shaved off. | |
function padNumber(num) { | |
return num < 10 ? '0' + num : '' + num; | |
} | |
let CONFIG = { | |
NUMBER_OF_EXPENSIVE_HOURS: 8, // try to shave off this amount of expensive hours | |
PRICE_REGION: 'SE1', |
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 | |
# fetch and cache artist id by doing a search | |
$spotresults = @json_decode(shell_exec('curl "https://api.spotify.com/v1/search?q='.$artistNameFromScrape.'&type=artist" -H "Accept: application/json"')); | |
$artistmeta = json_encode($spotresults->artists->items[0]); | |
$artistid = (string)$spotresults->artists->items[0]->id; | |
$artistname = (string)$spotresults->artists->items[0]->name; | |
$result = $db->prepare("INSERT INTO artists(artist, url, parent_artist, json) VALUES(?,?,?,?)"); | |
$result->execute(array($artistname, $val, 0, $artistmeta)); | |
$insert_id = $db->lastInsertId(); |
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 | |
$artist_html = shell_exec('curl "http://schedule.sxsw.com/2017/artists"'); | |
preg_match_all('!<h4><a href="(.*?)">(.*?)</a></h4>!', $artist_html, $matches); | |
foreach($matches[1] as $i=>$val){ | |
print_r($matches[2][$i]." : ".$val."\n"); | |
} |
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
<html><head> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script> | |
<script> | |
function checkApi(){ | |
// CRAPPY JQUERY SCRIPT BECAUSE I AM NOT A DEVELOPER (anymore) | |
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 | |
# hello | |
# this is pure crap, don't even think about using it | |
# it doesn't filter input vars or contain ANY error handling at all | |
# i wrote this while putting a kid to bed in, january 2016 | |
# i repeat: do not use this script | |
# i am [email protected], a ceo - not a real developer | |
# prerequisites | |
# you need an account at mathem |
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 | |
$data = array( | |
"percent" => "100", | |
"duration_ms" => "10000" | |
); | |
$url_send = "https://api-http.littlebitscloud.cc/devices/XXX/output"; | |
$str_data = http_build_query($data); | |
$ch = curl_init($url_send); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer XXX','Accept: application/vnd.littlebits.v2+json')); | |
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); |
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 | |
date_default_timezone_set("Europe/Stockholm"); | |
require 'vendor/autoload.php'; | |
use GuzzleHttp\Pool; | |
use GuzzleHttp\Client; | |
$client = new Client(); |
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
earth people är en webbyrå i stockholm. | |
vi gör roliga projekt åt bland annat halebop, amnesty, red bull och andra direktkunder | |
och hjälper även reklambyråer i sverige och usa att producera digitala kampanjer. | |
just nu är vi 11, men vill bli fler om rätt person dyker upp. | |
roller vi är intresserade av att fylla för närvarande är: | |
- produktionsledare | |
- strateg (tillsatt!) | |
- kreatör/designer |
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
@Override | |
public void onNotificationPosted(StatusBarNotification statusBarNotif) { | |
Notification notif = statusBarNotif.getNotification(); | |
if (notif != null){ | |
Bundle extras = notif.extras; | |
Intent intent = new Intent(MainActivity.INTENT_NOTIFICATION); | |
intent.putExtras(notif.extras); |
NewerOlder