Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Coding everyday keeps the doctor away!

Jentan Bernardus jentanbernardus

:shipit:
Coding everyday keeps the doctor away!
View GitHub Profile
@jentanbernardus
jentanbernardus / README.md
Last active Mar 31, 2021
Display a WPForm with code #wordpress #code #snippet
View README.md

Display a WPForm with code

WPForms is usually added to pages using a shortcode like [wpforms id="123"]. But you can also use the following function to add it to your theme. This is useful when you want a contact form to appear in the footer of every page on your site.

wpforms_display( $id, $display_title, $display_description );

@jentanbernardus
jentanbernardus / functions.php
Last active Mar 24, 2021
Enable SVG upload in WordPress
View functions.php
<?php
function gimme_svg($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'gimme_svg');
?>
View index.html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.css">
<!-- Hero Slider -->
<div id="home" class="hero-slider owl-carousel owl-theme">
<div class="single-hs-item item-bg1">
<div class="d-table">
<div class="d-tablecell">
<div class="hero-text">
View package.json
{
"name": "freecodecamp",
"author": "Jentan Bernardus",
"description": "A project that does something awesome",
}
@jentanbernardus
jentanbernardus / vhost.md
Last active Jan 6, 2022
Setting Up Virtual Hosts in MAMP on Windows
View vhost.md

1. Edit MAMP Apache configuration to include Virtual Hosts configuration

In File Explorer, go to C:\MAMP\conf\apache and open httpd.conf with your text editor.

Find this line:

# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
@jentanbernardus
jentanbernardus / readme.md
Created Nov 28, 2019
Working Components of Front-end Architecture
View readme.md

Working Components of Front-end Architecture

Code

  • HTML5/WAI-ARIA
  • CSS/Sass Code standards and organization
  • Object-Oriented approach (how do objects break down and get put together)
  • JS frameworks/organization/performance optimization techniques
  • Asset Delivery - Front-end Ops
@jentanbernardus
jentanbernardus / README.md
Created Nov 28, 2019
Merging branches via command line
View README.md

Merging branches via command line

If you do not want to use the merge button or an automatic merge cannot be performed, you can perform a manual merge on the command line.

Step 1: From your project repository, bring in the changes and test.

`` git fetch origin git checkout -b branch-name origin/branch-name

View inter.css
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("font-files/Inter-Thin.woff2?v=3.11") format("woff2"),
url("font-files/Inter-Thin.woff?v=3.11") format("woff");
}
@font-face {
View resume.json
{
"basics": {
"name": "Jentan Bernardus",
"label": "Web Developer",
"summary": "I’m a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am use to wearing many hats. I am a very product focussed developer who priotizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ",
"website": "https://jentanbernardus.com",
"email": "jentanbernardus@gmail.com",
"location": {
"city": "Curacao",
"countryCode": "CW"
View sublime-text-3_plugins.md