Skip to content

Instantly share code, notes, and snippets.

View AndreasPizsa's full-sized avatar
⌨️

Andreas Pizsa AndreasPizsa

⌨️
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>{{ results[0].name.first }} >{{ results[0].name.last }}</title>
</head>
<body>
<h1>{{ results[0].name.first }} {{ results[0].name.last }}</h1>
<img src="{{ results[0].picture.large}}">
</body>
</html>
{
"foo": "bar!"
}
[
"<script type='text/javascript'>console.log('hello')</script>",
"https://gist.githubusercontent.com/AndreasPizsa/fa7433b5af9c7fe7bd73710a38617d56/raw/script.js",
"https://obamaself.com"
]
{
"": {
"// you'll need images for all the `playerItems` below" : "",
"// just append the item id to `assetsBaseUrl`": "",
"assetsBaseUrl": "https://via.placeholder.com/150?",
"// URL for the language file.":"",
"languageUrl": "https://bigfarm-html5.goodgamestudios.com/languages/latest/de.json"
},
"payoutTypes": [{
package com.goodgamestest;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.qmetric.spark.authentication.AuthenticationDetails;
import com.qmetric.spark.authentication.BasicAuthenticationFilter;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
<h1>
Huhu, {{ name }}!
</h1>
<p>Diese Nachricht wurde wurde <b>automatisch</b> erstellt - alles, auch das PDF mit der Muster-Rechnung :)</p>
<p><span style="color: red">Was</span> <span style="color: green">sagst</span> Du <span style="color:blue">dazu</span>? :)</p>
<html>
<head></head>
<body>
<h1>Hello, {{name}}</h1>
</body>
</html>
@AndreasPizsa
AndreasPizsa / works.ts
Created November 16, 2015 13:50
TS2 - lodash _.forEach
if (item.relations) {
item.relations.forEach((relation) => {
//
// ...
//
});
}
@AndreasPizsa
AndreasPizsa / parseWindowLocationQuery.js
Last active November 4, 2018 16:46
Parse URL query string in JavaScript
/**
* sets window.location.query, which is a hash with all parameters
* param names are all lowercase
* reference as window.location.query.myparameter
*/
(function parseWindowLocationQuery(w){
var d=decodeURIComponent,
q=w.location.query=w.location.query||{},
pairs=w.location.search.substr(1).split('&'),
i;
@AndreasPizsa
AndreasPizsa / HTTP Errors
Created December 8, 2014 16:03
List of Restify HTTP and REST Error Exceptions
100 restify.errors.ContinueError
101 restify.errors.SwitchingProtocolsError
102 restify.errors.ProcessingError
200 restify.errors.OKError
201 restify.errors.CreatedError
202 restify.errors.AcceptedError
203 restify.errors.Non-AuthoritativeInformationError
204 restify.errors.NoContentError
205 restify.errors.ResetContentError
206 restify.errors.PartialContentError