Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Stuart Elimu stuartelimu

🎯
Focusing
  • Kampala, Uganda
Block or report user

Report or block stuartelimu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View json.go
"$matchOne": func(template, context map[string]interface{}) (interface{}, error) {
if err := restrictProperties(template, "$matchOne"); err != nil {
return nil, err
}
match, ok := template["$matchOne"].(map[string]interface{})
if !ok {
return nil, TemplateError{
Message: "$matchOne can evaluate objects only",
Template: template,
@stuartelimu
stuartelimu / db.md
Last active Oct 3, 2019
PHP MySQL Revision
View db.md

connect to the database, CRUD

$con = mysql_connect("localhost","root","");

// select database 
mysql_select_db("database-name");

// perform query 
// insert query
View ausers-urls.py
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('accounts.urls')),
]
@stuartelimu
stuartelimu / .htaccess
Created Jul 6, 2019
Laravel setup file for infinityfree.net
View .htaccess
##################################################
#
# Replace the fields with your app and domain name
#
##################################################
DirectoryIndex <app name>/public/index.php index.html index.htm index2.html
RewriteEngine on
You can’t perform that action at this time.