View SimpleDatabaseHelper.java
package se.mobileapplab.datademo;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Class that wraps the most common database operations. This example assumes you want a single table and data entity
View node-and-npm-in-30-seconds.sh
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
View mysql2sqlite.sh
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
View CP_1.3_README.MD

Learnings

  • My program/app sample is here
  • Naming conversion is important
  • Custom functions inside the controller will autoload for you
  • Auth class is for login like we all know ;)
  • $this->Auth->allow(array()) allows to use actions without logging in or using Auth for Authentication
  • Routes are here, maybe it's important
  • Setting up important vars $this->set('admin', $this->_isAdmin());
  • Custom function/helper inside App controller
View ROR_for_WINDOWS_10_GUIDE.MD

Requirements

  • Windows 10 Anniversary Update with KB3213986 Update
  • Windows Developer Mode should be Activated
  • Windows Subsystem for Linux should be installed

Installation details

Available at this GoRails Article.

Recommended RoR Versions

  • Ruby 3.2.0 and up
View INSTALLATION.MD

Instructions

  • Copy mo lahat yung database.sql
  • Tapos punta ka na sa htdocs project directory ng system (realpage-pems) then i command mo to
    cp config.php.example config.php
    
  • SA CONFIG NA YAN, DIYAN ANG SETTINGS NG SYSTEM FOR DATABASE. EDIT NIYO YAN SYEMPRE
View env_path_update.bat
@echo off
echo.
echo ########################## XAMPP ENV PATH UPDATE 1.0 ##########################
echo # Script by jccultima123 #
echo ###############################################################################
echo.
goto check_Permissions
rem Check permissions first
rem source: http://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights
View hosts
Listen 10001
Listen 80
View Preferences.sublime-settings
{
"color_scheme": "Packages/User/SublimeLinter/Monokai Bright (SL).tmTheme",
"fade_fold_buttons": false,
"font_size": 10.5,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"spell_check": true,
View .gitconfig
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com