Skip to content

Instantly share code, notes, and snippets.

View zanechua's full-sized avatar
:octocat:
I spend way more time on GitHub than I should

Zane Chua zanechua

:octocat:
I spend way more time on GitHub than I should
View GitHub Profile
@zanechua
zanechua / azure-pipelines.yml
Last active April 11, 2023 11:51
Azure Pipeline + Laravel + MySQL + PHPUnit + Laravel Dusk
# PHP
# Test and package your PHP project.
# Add steps that run tests, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/php
pool:
vmImage: 'Ubuntu 16.04'
variables:
phpVersion: 7.2
@zanechua
zanechua / 1. Emoji Code Points - Quick Usage Guide.md
Last active October 17, 2019 05:40
NodeJS Script to download the emoji json and output the code points for HTML

Insert into HTML

<p>&#x2049</p>

Equivalent:

Insert via Javascript

var emoji = "&#x2049";
var encodedEmoji = String.fromCodePoint(emoji.replace("&#", "0"));

element.innerHTML = encodedEmoji

@zanechua
zanechua / auth-test.spec.js
Created December 16, 2017 01:43
AdonisJS Authentication Test
'use strict'
const { Config } = require('@adonisjs/sink')
const Auth = use('Adonis/Src/Auth')
const User = use('App/Models/User')
const { before, beforeEach, after, afterEach, test } = use('Test/Suite')('Authentication Test')
test('Ensure Authentication Works', async ({ assert }) => {
let httpSession = null
const username = 'test'
@zanechua
zanechua / nginx.conf
Last active August 29, 2015 14:21 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048