Skip to content

Instantly share code, notes, and snippets.

View failamir's full-sized avatar
😁
Im Fool

failamir failamir

😁
Im Fool
View GitHub Profile
@failamir
failamir / index.html
Created December 2, 2022 14:18
Neomorphic Neon Form - Dark Mode
<div class="box">
<div class="box-title">
<h1>Neon Form</h1>
<p>Hover me</p>
</div>
<div class="form-box">
<input
type="text"
class="email"
placeholder="Please enter your e-mail"
@failamir
failamir / php-Knuth-Morris.php
Created August 9, 2020 21:49 — forked from fatkulnurk/php-Knuth-Morris.php
Algoritma Knuth-Morris-Pratt
<?php
// Referensi :
// https://id.wikipedia.org/wiki/Algoritma_Knuth-Morris-Pratt
// https://stackoverflow.com/questions/44081348/is-it-possible-to-use-knuth-morris-pratt-algorithm-for-string-matching-on-text-t
// http://www.elangsakti.com/2013/03/implementasi-algoritma-string-matching.html
// https://stackoverflow.com/questions/29439930/knuth-morris-pratt-string-search-algorithm
// https://stackoverflow.com/questions/5873935/how-to-optimize-knuth-morris-pratt-string-matching-algorithm
// https://stackoverflow.com/questions/13271856/understanding-knuth-morris-pratt-algorithm
//
//
@failamir
failamir / kmp_match.php
Created August 9, 2020 21:46 — forked from white-gecko/kmp_match.php
Knuth-Morris-Pratt-Algorithm
<?php
/**
* This is an implementation of the Knuth-Morris-Pratt-Algorithm as in
* Thomas H. Cormen et. al.: "Algorithmen - Eine Einführung"
* (German version by Paul Molitor) 3. Auflage, page 1017
*
* My changes:
* - Indexes starting with 0
* - overlapping matches are recognized
*/
@failamir
failamir / key.md
Created January 1, 2020 10:26
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@failamir
failamir / index.html
Last active April 22, 2019 14:48
JavaScript calculator
<h1>JavaScript Calculator</h1>
<p class="warning">Don't divide by zero</p>
<div id="calculator" class="calculator">
<button id="clear" class="clear">C</button>
<div id="viewer" class="viewer">0</div>
<button class="num" data-num="7">7</button>
@failamir
failamir / index.html
Last active April 22, 2019 14:48
React Calculator
<div id="wrapper">
<div id="app"></div>
</div>
@failamir
failamir / index.pug
Created April 22, 2019 14:45
Only CSS: 3D Scan
.container
- for (i = 0; i < 400; i++)
.trigger
.monitor
.camera.o-x
.camera.o-y
.camera.o-z
.vr
- for (i = 0; i < 20; i++)
.vr_layer
@failamir
failamir / AES-256 encryption and decryption in PHP and C#.md
Created November 2, 2018 14:02
AES-256 encryption and decryption in PHP and C#

AES-256 encryption and decryption in PHP and C#

Update: There is a more secure version available. Details

PHP

<?php

$plaintext = 'My secret message 1234';