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 | |
// Mandatory ACF plugin: https://wordpress.org/plugins/acf-code-field/ | |
if( function_exists('acf_add_local_field_group') ): | |
acf_add_local_field_group(array( | |
'key' => 'group_5b9a038a203dd', | |
'title' => 'SEO Settings', | |
'fields' => array( | |
array( |
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
// Dark solid setup | |
$dark-050: rgba(230, 235, 236, 1) !default; | |
$dark-100: rgba(205, 215, 216, 1) !default; | |
$dark-150: rgba(179, 195, 197, 1) !default; | |
$dark-200: rgba(154, 175, 177, 1) !default; | |
$dark-250: rgba(129, 155, 158, 1) !default; | |
$dark-300: rgba(104, 134, 139, 1) !default; | |
$dark-350: rgba(79, 114, 119, 1) !default; | |
$dark-400: rgba(53, 94, 100, 1) !default; | |
$dark-450: rgba(28, 74, 80, 1) !default; |
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
/** | |
* https://stackoverflow.com/a/41527934/4026345 | |
*/ | |
import 'dart:math'; | |
import 'package:flutter/painting.dart'; | |
class MercatorProjection { | |
final DEFAULT_PROJECTION_WIDTH = 256; // ignore: non_constant_identifier_names |
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
image: atlassian/default-image:2 | |
pipelines: | |
branches: | |
master: | |
- step: | |
deployment: production | |
script: | |
- cat ./deploy.sh | ssh $HOST_USER@$HOST_URL | |
- echo "Deploy step finished" |
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
// The XO has to be installed as dependency. If you use it globally, it won't work... | |
"xo": { | |
"extensions": [ | |
"vue" | |
], | |
"parserOptions": { | |
"parser": "babel-eslint" | |
}, | |
"extends": [ | |
"plugin:vue/recommended" |
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 | |
function adminer_object() { | |
// required to run any plugin | |
include_once "./plugins/plugin.php"; | |
// autoloader | |
foreach (glob("plugins/*.php") as $filename) { | |
include_once "./$filename"; | |
} |
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
/** | |
* Layout mixins | |
*/ | |
.top-left(@top: 0, @left: 0, @zindex: '', @position: absolute) when (@zindex = '') { | |
position: @position; | |
top: @top; | |
left: @left; | |
} | |
.top-left(@top: 0, @left: 0, @zindex: '', @position: absolute) when not (@zindex = '') { |
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
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(t){return void 0===t||null===t}function e(t){return void 0!==t&&null!==t}function n(t){return!0===t}function r(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function i(t){return null!==t&&"object"==typeof t}function o(t){return"[object Object]"===Nn.call(t)}function a(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function s(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function c(t){var e=parseFloat(t);return isNaN(e)?t:e}function u(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function l(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function f(t,e){return Mn.call(t,e)}function p(t){var e=Object.create |
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
# Create new database & new collection | |
use new_db | |
db.new_db.save({test: 'test'}); |
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
#!/bin/bash | |
curl -X POST "https://api.cloudflare.com/client/v4/zones/{$ZONE_ID}/purge_cache" \ | |
-H "X-Auth-Email: {$EMAIL}" \ | |
-H "X-Auth-Key: {$API_KEY}" \ | |
-H "Content-Type: application/json" \ | |
--data '{"purge_everything":true}' |
NewerOlder