Skip to content

Instantly share code, notes, and snippets.

View anchetaWern's full-sized avatar
🏠
Working from home

Wern Ancheta anchetaWern

🏠
Working from home
View GitHub Profile
-- phpMyAdmin SQL Dump
-- version 4.4.13.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 13, 2016 at 06:22 PM
-- Server version: 5.6.28-0ubuntu0.15.10.1
-- PHP Version: 5.6.11-1ubuntu3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@anchetaWern
anchetaWern / Attendance-System.md
Last active April 21, 2016 10:55
Attendance System

#Attendance System

Create a web application that allows teachers to easily track the attendance of students. There are 2 types of users that can use the system: admin and teacher

the admin is responsible for:

  • creating teacher account
  • creating students
  • change email and password of his own account
  • logout
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 06, 2016 at 06:57 AM
-- Server version: 5.7.12-0ubuntu1.1
-- PHP Version: 5.6.23-2+deb.sury.org~xenial+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@anchetaWern
anchetaWern / lums
Created December 2, 2012 00:42
laravel - ums
---
layout: post
title: "Building a user management system using Laravel"
date: 2012-11-24 22:10
comments: true
categories: [php, laravel]
published: true
---
There's no shortage of good resources for learning laravel.
@anchetaWern
anchetaWern / couchdb-bulk.json
Last active November 19, 2016 19:34 — forked from anonymous/couchdb-bulk.json
couchdb bulk json
{
"docs": [
{
"name": "Squirtle",
"type": ["Water"],
"trainer": "Ash",
"gender": "m",
"owned": "1999-05-21"
},
{
@anchetaWern
anchetaWern / prolog-sample.pl
Created November 20, 2016 12:30
prolog demo
#fact source
male(goku).
female(chichi).
parent(goku, gohan).
parent(chichi, gohan).
parent_of(X, Y, Z) :- male(X), female(Y), parent(X, Z), parent(Y, Z).
@anchetaWern
anchetaWern / Activity.java
Created December 18, 2016 15:46
TPL final act
package activity;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
import java.util.logging.Level;
@anchetaWern
anchetaWern / speech-recognition.js
Created May 16, 2015 09:49
speech-recognition.js
var recognition;
function startRecognition() {
recognition = new webkitSpeechRecognition();
recognition.onstart = function(event) {
updateRec();
};
recognition.onresult = function(event) {
var text = "";
for (var i = event.resultIndex; i < event.results.length; ++i) {
!function(){function t(n){function o(t){return t.split("/").slice(-1).toString().replace(".js","")}return n.slice?t[o(n)]:function(e,i){n(e={exports:{}}),t[o(i)]=e.exports}}var n;"undefined"!=typeof window&&(n=window),"undefined"!=typeof global&&(n=global),n=n||{};var o=n.console||{log:function(){}};if("undefined"!=typeof module)var e=module;t(function(t){var n={};n.fns=n.fn={is:function(t){return!!t&&"function"==typeof t}},n.bi={is:function(t){return t instanceof Boolean||"boolean"==typeof t}},n.num={is:function(t){return!e(t)&&(t-parseFloat(t)+1>=0||1/0===t||-(1/0)===t)}},n.text={is:function(t){return"string"==typeof t}},n.text.ify=function(t){return n.text.is(t)?t:"undefined"!=typeof JSON?JSON.stringify(t):t&&t.toString?t.toString():t},n.text.random=function(t,n){var o="";for(t=t||24,n=n||"0123456789ABCDEFGHIJKLMNOPQRSTUVWXZabcdefghijklmnopqrstuvwxyz";t>0;)o+=n.charAt(Math.floor(Math.random()*n.length)),t--;return o},n.text.match=function(t,o){function e(t,n){for(var o,e=-1,i=0;o=n[i++];)if(!~(e=t.indexOf(
@anchetaWern
anchetaWern / amazon-product-api-response
Created April 16, 2016 11:36
Sample Amazon Product API Response
SimpleXMLElement Object
(
[OperationRequest] => SimpleXMLElement Object
(
[HTTPHeaders] => SimpleXMLElement Object
(
[Header] => SimpleXMLElement Object
(
[@attributes] => Array
(