Skip to content

Instantly share code, notes, and snippets.

@dawidnawrot
dawidnawrot / books.json
Last active April 23, 2023 13:06 — forked from nanotaboada/books.json
A small-sized (8 items) sample collection of free Books in valid JSON (RFC 8259) format
[{"tytul":"Historia Pcimia Dolnego","autor":"Jan Nowak","cena":55},{"tytul":"Potrawy z trawy","autor":"Kazimierz Vege","cena":42},{"tytul":"Mi\u0119sny Je\u017c - przepisy keto","autor":"Rafa\u0142 Rze\u017anik","cena":74},{"tytul":"Nobody is perfect","autor":"Steven Nobody","cena":15}]
# mutation section
# Write your query or mutation here
mutation publishPage($var:ID!) {
publishPage(pageId: $var) {
id
}
}
# Query variables section, where long string is a pageId from db
{
# QUERY AND MUTATION
query authors {
authors(first:5, offset:97) {
id,
firstName,
lastName
}
}
mutation createAuthor($inputPage:CreateAuthorInput!) {
const program = require("commander");
const { spawn } = require('child_process');
program
.version("1.0")
.description("Test AVA with tags")
.name("test:tag")
.option("-t, --tags <tags>", "Tags provided with comma")
.parse(process.argv);
# test name: "User gets auto generated id | Tags: (tag-sol3-000;tag-user)"
# branch name: "sol3-000-branch-description(tag-sol3-000;tag-user)"
# Get branch name.
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
# Extract tags.
tags=$(echo "$branch" | sed -e "s/[^(]*//" | sed -e "s/[)(]//g")
# If no tags attached then exit.
if [ ${#tags} -eq 0 ]; then
<?php
function template_preprocess_page(&$variables) {
$google_simple_api_access_key = variable_get('google_simple_api_access_key');
drupal_add_js(array(
'google_simple_api_access' => array(
'key' => $google_simple_api_access_key,
),
),
drush @mx._local--php en devel
drush @mx._local--shop en devel
@dawidnawrot
dawidnawrot / launch.json
Created May 2, 2018 07:39
Setup for solas xdebug in VCS
{
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Xdebug solas",
"type": "php",
"cwd": "${workspaceRoot}",
"pathMappings": {
"/home/vagrant/sites/pt": "${workspaceRoot}",
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
<form action="https://test.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">
<input type=hidden name="oid" value="00D9E0000000zof">
<input type=hidden name="retURL" value="https://www.moneyjournal.com/wp-content/uploads/2016/03/default-thank-you-page-template-768x348.png">
<input type="hidden" name="Campaign_ID" value="7019E000000IW77QAG" />
<input type="hidden" name="member_status" value="Responded" />
<label for="first_name">First Name</label><input id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>
376|Andorra, +376
971|United Arab Emirates, +971
93|Afghanistan, +93
1268|Antigua and Barbuda, +1 268
1264|Anguilla, +1 264
355|Albania, +355
374|Armenia, +374
244|Angola, +244
672|Antarctica, +672
54|Argentina, +54