This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/// ROUTES | |
// GET /pokemon - display a list of pokemon | |
$router->get('/pokemon', 'PokemonController@index'); | |
$router->group(['middleware' => 'jwt.auth'], function () use ($router) { | |
// GET /pokemon/id - display specific pokemon | |
$router->get('/pokemon/{id:[\d]+}', [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function email_login($email, $password) { | |
// check if email is existing | |
$this->db->where('email', $email); | |
$query = $this->db->get('users'); | |
$user = $query->row_array(); | |
// if existing verify password | |
if ($user != null) { | |
// if correct password return user information | |
if ($user["password"] == $password) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Terminal connection with RMATE | |
ssh -R 52698:localhost:52698 HOST_NAME@IP_ADDRESS | |
//VSCODE | |
>Remote: Start Server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.eleartech.centtochange2 | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import com.google.android.gms.tasks.Task | |
import com.google.firebase.FirebaseApp | |
import android.support.annotation.NonNull | |
import android.support.v4.app.FragmentActivity | |
import android.util.Log | |
import com.eleartech.centtochange2.models.Name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide keyboard when touched outside EditText | |
@Override | |
public boolean dispatchTouchEvent(MotionEvent event) { | |
if (event.getAction() == MotionEvent.ACTION_DOWN) { | |
View v = getCurrentFocus(); | |
if ( v instanceof EditText) { | |
Rect outRect = new Rect(); | |
v.getGlobalVisibleRect(outRect); | |
if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) { | |
v.clearFocus(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.eleartech.pabor.transaction; | |
import android.app.Dialog; | |
import android.content.DialogInterface; | |
import android.graphics.drawable.ColorDrawable; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# DATE | |
echo "Data processed"; | |
date_default_timezone_set('UTC'); | |
echo date('h:i:s:u a, l F jS Y e'); | |
# FORM POST (variables) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
"files.exclude": | |
{ | |
"**/.DS_Store":true, | |
"**/.git":true, | |
"**/.gitignore":true, | |
"**/.gitmodules":true, | |
"**/*.booproj":true, | |
"**/*.pidb":true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using System.Collections; | |
using System.IO; | |
#if UNITY_IOS | |
using UnityEditor.iOS.Xcode; | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
public class BackgroundBlurEditor : MaterialEditor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
serializedObject.Update(); | |
if( isVisible ) | |
{ |
NewerOlder