Skip to content

Instantly share code, notes, and snippets.

View codehakase's full-sized avatar
🎯
Kicking Ass

Francis Sunday codehakase

🎯
Kicking Ass
View GitHub Profile
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@codehakase
codehakase / A Simple Wordpress Default Setting Looks like this
Created October 21, 2014 16:55
A Simple Wordpress Default Setting Looks like this
<?php
/**
* Used to set up and fix common variables and include
* the WordPress procedural and class library.
*
* Allows for some configuration in wp-config.php (see default-constants.php)
*
* @internal This file must be parsable by PHP4.
*
* @package WordPress
Code for Web Design students would go here...
#include <stdio.h>
int main() {
int b = 2;
int a = 42;
if (b > 3)
if (a > 3) b += 1;
else b -= 1;
@codehakase
codehakase / package.json
Last active February 18, 2017 14:12
Proxie Error fix AdonisJs
"scripts": {
//...............
"serve:dev": "nodemon --watch app --watch bootstrap --watch config --watch .env -x \"node --harmony_proxies\" server.js",
"serve": "node --harmony_proxies server.js",
//...............
}
@codehakase
codehakase / mail.php
Created April 1, 2017 08:53
Mail script solution
<?php
if (isset($_POST)) {
$email = $_POST['email'];
$values = ['Name','Address','Phone','Email','BusinessType','Budget'];
$required = ['Name','Address','Phone','Email','BusinessType','Budget'];
$your_email = "[email protected]";
$email_subject = "New Message: ".$_POST['subject'];
$email_content = "new message:\n";
foreach($values as $key => $value){
<?php
/**say the students are pulled from a database table via a while loop (or what you're using)
it may look like this:
*/
?>
<?php while ($row = $yourTable->fetchObject()): ?>
<tr>
<td>$row->studentName</td>
the rest of the pull
...
@codehakase
codehakase / login.php
Created June 14, 2017 06:24
Login Script -OOP
<?php
/**
* User class
* Database Driver - PDO
*/
class User
{
private $db; //your database handler
public function login(string $username, string $password)

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@codehakase
codehakase / aes.go
Last active July 11, 2017 12:58
A Go script with methods that encrypts and decrypts strings using the Advanced Encryption Standard (AES)
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"errors"
"fmt"
"io"
"log"