Skip to content

Instantly share code, notes, and snippets.

View marbaque's full-sized avatar

marbaque

View GitHub Profile
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
p {
text-align: center;
font-size: 60px;
margin-top: 0px;
}
{
"name": "OEGlobal Custom Blocks",
"version": "1.1",
"download_url": "https://github.com/ocwc/oeg-blocks-acf/archive/refs/heads/main.zip",
"homepage": "http://oeglobal.org/",
"requires": "4.5",
"tested": "5.7",
"last_updated": "2021-08-21 21:08:00",
"upgrade_notice": "Here's why you should upgrade...",
wp core download
wp core config --dbname="dbname" --dbuser="dbuser" --dbpass="dbpass" --extra-php <<PHP
/* Pressbooks */
define( 'WP_DEFAULT_THEME', 'pressbooks-book' );
define( 'PB_PRINCE_COMMAND', '/usr/bin/prince' );
define( 'PB_KINDLEGEN_COMMAND', '/opt/kindlegen/kindlegen' );
define( 'PB_EPUBCHECK_COMMAND', '/usr/bin/java -jar /opt/epubcheck-3.0.1/epubcheck-3.0.1.jar' );
define( 'PB_XMLLINT_COMMAND', '/usr/bin/xmllint' );
PHP
wp core install --url="http://domain.com" --title="Pressbooks" --admin_user="username" --admin_password="password" --admin_email="user@domain.com"
<?php
$settings=array(
/* (string) Unique identifier for the form. Defaults to 'acf-form' */
'id'=>'acf-form',
/* (int|string) The post ID to load data from and save data to. Defaults to the current post ID.
Can also be set to 'new_post' to create a new post on submit */
'post_id'=>false,
@marbaque
marbaque / css-test-button.markdown
Created May 27, 2020 15:53
CSS Test — Button
<?php
/**
* Plugin Name: CPT para academia municipal
* Author: Mario Badilla PEM
* Version: 1.0.0
*/
function cptui_register_my_cpts() {
@marbaque
marbaque / gist:5216436524ba72a5626ae07fc7d66b15
Last active October 21, 2020 02:20
oeglobal-theme-colors
const theme = {
colors:
{
'blue-100': '#0d1530',
'blue-200': '#1c2b5a',
'blue-300': '#1f377a',
'blue-400': '#1952b3',
'blue-500': '#0d59f2',
'blue-600': '#3b80f7',
'blue-700': '#6ea5f7',
@marbaque
marbaque / list.dart
Last active March 18, 2020 14:28 — forked from angelabauer/list.dart
void main() {
List<String> myList = [
'Angela',
'James',
'Katie',
'Jack',
];
//print(myList[2]);
<header class="p-2 md:p-3 lg:p-4 xl:p-5 shadow-md z-10 flex flex-row justify-between items-center">
<img src="img/oeg-mainH-RGB.svg" class="h-10 sm:h-12 md:h-14 lg:h-16" alt="Open Education Global">
<nav>
<ul class="list-none flex flex-row justify-around sm:justify-end p-0 m-0 bg-red-200">
<li class="p-4">About OE GLOBAL +</li>
<li class="p-4">Activities +</li>
</ul>
</nav>
</header>
@marbaque
marbaque / show_and_write_thumbnail_functions.php
Created September 23, 2019 16:18 — forked from siddartha/show_and_write_thumbnail_functions.php
Function to show and/or write thumbnails generated by Mshots from WP.org
<?php
/**
* Display thumbs generate by Wordpress' service Mshot and write
* locally the thumb after generation to have better loading web performance.
*
* Thx @jd_ma for help :)
*/
function show_and_write_thumbnail ($url, $width=200, $height=150) {