Code Monkey home page Code Monkey logo

code-examples's Introduction

WooCommerce Order Exports Plugin

Language: PHP

This was a plugin I wrote for a client who wanted to be able to create exports of WooCommerce orders but also include specific custom fields. The client had tried various products online, but none included all the data she needed.

I used an Object Oriented Programming pattern to improve code readability and keep the code organised.

Example (WiP) - React using WP-API

Language: JavaScript

This is an example of an interface I've been working for a client. It's purpose was to allow profile data to be pulled from the WP-API into an external website.

It's configured with webpack, using ES6 transpiled by Babel.

Other depenencies are react-router, axios, and react-google-maps.

Example JavaScript - Manage Users Module

Language: JavaScript

This is a module from a larger JavaScript interface which integrate alongside WordPress. This specific module handles a 'Manage Users' page, where user groups can be created and users sorted into multiple groups. One complexity was allowing the user to bulk-edit users into groups.

This is written in ES6 JavaScript (which allows the use of classes, arrow functions etc), but it would then be compiled into regular JavaScript using Babel with Gulp. It also makes use of jQuery.

As with the plugin above, I have used OOP, specifically classical objects to keep quite a complicated UI nice and tidy. I could have used a framework such as React to create the view, but I felt it was useful for me to tackle this issue without a framework doing the work for me and I learned a lot in the process.

Example JavaScript - Pricing Calculator.js Language: JavaScript

A pricing calculator was required as part of a quotation system. As above, this follows OOP, except this time not written in ES6 and did not require the use of Babel to compile the code.

Example of SASS module

Language: SASS

This is a straightforward module of a SASS stylesheet. I would then use Gulp to watch for changes and compile into a regular CSS stylesheet. For this project I used a SASS grid framework called Avalanche which also provided the media queries (referenced as variables in the example, e.g. $pocket).

It is a template module, which means stlying specific to particular views are handled in this file, as opposed to more general styling (e.g. typography, forms, etc).

code-examples's People

Contributors

dafoxuk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.