The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Revised by Bytes Unlimited : June 14th 2017
import React, {useEffect, useRef, useState} from "react" | |
import {GatsbyImage, getImage} from "gatsby-plugin-image" | |
import {classNames} from "../../../../utils" | |
import Clamp from "react-multiline-clamp" | |
import parse from 'html-react-parser' | |
import {MinusSmIcon, PlusSmIcon} from "@heroicons/react/solid"; | |
export const Section = ({data, darken, side}) => { | |
const image = getImage(data.image?.localFile) ?? null | |
const bgClass = darken ? `bg-white` : `bg-white` |
query ($uri: String!) { | |
wpPage(uri: { eq: $uri }) { | |
title | |
content | |
uri | |
slug | |
isFrontPage | |
wpFields { | |
homepage { | |
fieldGroupName |
{ | |
"query": { | |
"bool": { | |
"must_not": { | |
"wildcard": { | |
"error.string": { | |
"value": "Some sort of value*" | |
} | |
} | |
} |
<?php | |
/** | |
* Sourced from https://gist.github.com/Ellrion/f51ba0d40ae1d62eeae44fd1adf7b704 | |
*/ | |
class UnparsedURL | |
{ | |
private $parts; | |
public function __construct(array $parts){ | |
$this->parts = $parts; |
minetest.register_chatcommand("dump", { | |
params = "", | |
description = "Dump all objects in the global table", | |
func = function() | |
print("_G has "..#_G.." elements") | |
for k,v in pairs(_G) do | |
if k~="_G" then | |
if type(v)=="string" or type(v)=="number" then | |
print("G["..k.."]="..v) | |
elseif type(v)=="table" then |
from os import getcwd | |
from sys import path | |
from typing import Union | |
from threading import Timer | |
################################ | |
###### CHANGEABLE OPTIONS ###### | |
################################ | |
# None yet fam. |
-- Acen's buff/attack macro. | |
--[[ | |
Key Selection | |
VK Key list: https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx | |
]]-- | |
-- Activation/Deactivation | |
Key_Activate = 0xC0 -- ` (~) | |
-- Skills | |
Key_Skill1 = 0x10 -- SHIFT |
Sending this data on every page view: | |
<script type="text/javascript"> | |
ga('set', 'company_id', '{{ $company['company_id'] }}'); | |
ga('set', 'monthly_spend', '{{ $company['monthly_spend'] }}'); | |
ga('set', 'plan_name', '{{ $company['plan_name'] }}'); | |
ga('set', 'renewal_date', '{{ $company['renewal_date'] }}'); | |
ga('send', 'pageview'); | |
</script> | |
OnRegistration: |
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateTokensTable extends Migration | |
{ | |
/** | |
* Run the migrations. |