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
@voidnerd
voidnerd / palindrome.php
Last active July 8, 2017 13:30
A php function that checks if string is Palindrome using OOP (Palindrome is a string that reads the same left-to-right and right-left-to-left).
<?php
class Palindrome {
public $words;
public $regex = '/[^A-Za-z0–9]/';
public $reserved;
public function __construct( $words)
{
@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)
@EwanValentine
EwanValentine / deploy.sh
Created March 27, 2017 09:39
Go + Docker build script example
#!/bin/bash
source ~/.bashrc
echo "Building"
# Build Go binary in Docker image
docker run --rm \
-e "GOPATH=/go" \
-e "CGO_ENABLED=0" \
-e "GOOS=linux" \

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
@SonyaMoisset
SonyaMoisset / Pocketbook | Codecademy | My solution.markdown
Created September 5, 2015 13:41
Pocketbook | Codecademy | My solution
@martinesmann
martinesmann / 0README.md
Last active April 10, 2025 22:53
Couchbase N1QL Samples.

#Learn N1QL by sample

N1QL is the document query language used to query data in Couchbase Server (CB). N1QL will be an integrated part of CB 4, until then there is a preview version available.

##SQL for JSON Documents N1QL is the first language to combine the flexibility of JSON with power of SQL queries. With N1QL you can run SQL like queries against your CB data without the need to pre-build views. N1QL enables advanced ad-hoc document queries in a familiar query language.

##Learning

<?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
@jboulhous
jboulhous / push.md
Created July 16, 2013 11:37
Push to github from cloud9

Add a git remote in the Cloud9 console. Should look like this (replace the git url with your repo url):

git remote add origin [email protected]:C9Support/testPush.git 

Add files and commit them:

git add . 
git commit -m "First commit"

Push to github:

@jxson
jxson / README.md
Created February 10, 2012 00:18
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@nicolas-grekas
nicolas-grekas / Advanced-HTTP-en.md
Created June 15, 2011 22:03
Advanced handling of HTTP requests in PHP