Skip to content

Instantly share code, notes, and snippets.

View oxcode-dev's full-sized avatar
💭
Always Available to code. Try me.

oxcode__ oxcode-dev

💭
Always Available to code. Try me.
View GitHub Profile
@adrianhajdin
adrianhajdin / api-key
Last active June 23, 2024 07:31
Build and Deploy a Modern Next.js 13 Application | React, Next JS 13, TypeScript, Tailwind CSS
hrjavascript-mastery
@hectorstudio
hectorstudio / firebase.js
Created June 26, 2020 03:38
Firebase Example
import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/analytics';
import { firebaseConfig } from '../constants';
export const initFirebase = () => {
firebase.initializeApp(firebaseConfig);
firebase.analytics();
};
@AlexStormwood
AlexStormwood / firebaseConfigSample.js
Last active September 22, 2023 23:19
Firebase React Config object featuring the Context API & Hooks
import React, { useState, useEffect, useContext, createContext} from 'react';
import firebase from 'firebase';
// Due to the way Firebase works, it's not the absolute end of the world if these keys are public.
// You must remember to set up security rules for all Firebase features though!
// Keeping the keys secret won't hurt, at least.
const firebaseConfig = {
apiKey: "BRING YOUR OWN FIREBASE PROJECT CREDENTIALS INTO HERE"
};
@sakalauskas
sakalauskas / FontAwesome-v5.0.9-Free.json
Last active February 14, 2024 03:28
List of all Font Awesome 5 icons in JSON Cheetsheet
{
"fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars",
@zwinnie
zwinnie / font-awesome-4.7.0.json
Created April 28, 2017 20:23
JSON Of All Font Awesome 4.7.0 Icons
{
"4.7.0": [
"fa-500px",
"fa-address-book",
"fa-address-book-o",
"fa-address-card",
"fa-address-card-o",
"fa-adjust",
"fa-adn",
"fa-align-center",
@dammyammy
dammyammy / DB.php
Created April 8, 2017 23:07
DB Class that Wraps around PDO
<?php
namespace Uno\Database;
class DB extends DBInteractor
{
/****************************************
* SELECT QUERIES
*****************************************/
public function getAllData($tableName)
<?php
namespace App\Services;
use App\Data\Core\DB;
class UserTracker
{
public function track()
@gokulkrishh
gokulkrishh / media-query.css
Last active June 28, 2024 09:07
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@webinista
webinista / ChunkAlphabetically.php
Last active August 8, 2022 13:56
Split an array into chunks based on the first letter of one of its column values.
<?php
global $alpha_chunks;
# Initialize array
$alpha_chunks = array();
function chunkNames(&$value, $key, $letter) {
global $alpha_chunks;
<?php
/**
* Get Google Page Speed Screenshot
*
* Uses Google's Page Speed API to generate a screenshot of a website.
* Returns the image as a base64 jpeg image tag
*
* Usage Example:
* echo getGooglePageSpeedScreenshot("http://ghost.org", 'class="thumbnail"');
*