Skip to content

Instantly share code, notes, and snippets.

@hhypnos
hhypnos / 01.md
Created September 3, 2019 14:06 — forked from nasrulhazim/01.md
Laravel Default API Login

Setup

Migration

Create new migration script:

php artisan make:migration add_api_token --table=users
<?php
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
@hhypnos
hhypnos / nginx.conf
Last active July 20, 2017 21:49 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@hhypnos
hhypnos / index.html
Created March 7, 2017 18:08
Pure CSS3 Boobs
<div class="body">
<div class="chest">
<div class="left"><div class="clavicle"></div></div>
<div class="right"><div class="clavicle"></div></div>
</div>
<div class="breast">
<div class="left"><ul class="boob"><li class="nipple"></li></ul></div>
<div class="right"><ul class="boob"><li class="nipple"></li></ul></div>
<div class="between"></div>
@hhypnos
hhypnos / CHECK-BOX.markdown
Created February 13, 2016 16:36
CHECK-BOX
@hhypnos
hhypnos / Contact Form Template.markdown
Created January 30, 2016 20:27
Contact Form Template

Contact Form Template

HTML/SCSS/JS Dynamic CSS classes for labels based on input field's value. pen by Chris Holder , i made it 3D

A Pen by GIO on CodePen.

License.

Circles, text and getImageData

I'm back with more of them moving circles. This script uses getImageData to form the text with particles. You can do some fun stuff with text and Canvas this way. Once again I'm using createjs for Canvas manipulation and the greensock library for easy tweening.

A Pen by Rachel Smith on CodePen.

License.

SplitText: Multiple Styles

A demo showing multiple split types and effects. Part of the SplitText Collection

A Pen by GreenSock on CodePen.

License.

@hhypnos
hhypnos / COOL-LOGO-.markdown
Created December 4, 2013 16:43
A Pen by GIO.