Skip to content

Instantly share code, notes, and snippets.

View ixqbar's full-sized avatar
💭
I may be slow to respond.

Well ixqbar

💭
I may be slow to respond.
View GitHub Profile
@ixqbar
ixqbar / ScrollingContainer.js
Created February 25, 2024 10:02 — forked from slashman/ScrollingContainer.js
PixiJS 4 Scrolling Container
/* globals TweenMax, Quad, Back, Elastic */
/*
* Original implementation: https://codepen.io/wiledal/pen/ZYoNEa?editors=0010
* Requires GreenSockss GSAP 2.0.1
* Works with PixiJS 4.7.3
*/
export default class ScrollContainer {
constructor(x, y, width, height, itemHeight) {
@ixqbar
ixqbar / index.html
Created January 18, 2024 04:46 — forked from ozrabal/index.html
Swiper custom slides transform effect
<!-- Swiper -->
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="slide-inner" style="background-image: url('http://cs412624.vk.me/v412624691/4117/RWBNZL6CLtU.jpg')"></div>
</div>
<div class="swiper-slide">
<div class="slide-inner" style="background-image: url('http://cs412624.vk.me/v412624691/41ad/atM6w55Z9Xg.jpg')"></div>
</div>
<div class="swiper-slide">
@ixqbar
ixqbar / frida-extract-keystore.py
Created December 6, 2023 06:10 — forked from ceres-c/frida-extract-keystore.py
Automatically extract KeyStore objects and relative password from Android applications with Frida - Read more: https://ceres-c.it/2018/12/16/frida-android-keystore/
#!/usr/bin/python3
'''
author: ceres-c
usage: ./frida-extract-keystore.py
Once the keystore(s) have been exported you have to convert them to PKCS12 using keytool
'''
import frida, sys, time
@ixqbar
ixqbar / KineticScroll.ts
Created March 7, 2022 10:10 — forked from PaNaVTEC/KineticScroll.ts
KineticScroll for Phaser 3 in typescript (Ported from https://github.com/jdnichollsc/Phaser-Kinetic-Scrolling-Plugin)
// Original imp: https://github.com/jdnichollsc/Phaser-Kinetic-Scrolling-Plugin
// Adapted to phaser 3 By Christian Panadero
export default class KineticScroll {
private pointerId
private startX
private startY
private screenX
private screenY
@ixqbar
ixqbar / .gitignore
Created April 14, 2020 03:50 — forked from iffy/.gitignore
Example using electron-updater with `generic` provider.
node_modules
dist/
yarn.lock
wwwroot
@ixqbar
ixqbar / unload.md
Created September 17, 2019 10:07
页面离开提示
(function(){
	// 关闭窗口时弹出确认提示
	$(window).bind('beforeunload', function(){
		// 只有在标识变量is_confirm不为false时,才弹出确认提示
		if(window.is_confirm !== false)
			return '您可能有数据没有保存';
	})
	// mouseleave mouseover事件也可以注册在body、外层容器等元素上
	.bind('mouseover mouseleave', function(event){
@ixqbar
ixqbar / base64copy.bash
Created August 9, 2019 08:31
base64copy
```bash
#!/bin/bash
function __base64 {
if [ "$1x" == "x" ]; then
return
fi
phpCommand="echo base64_encode(file_get_contents('$1'));"
php -r "$phpCommand" | pbcopy
@ixqbar
ixqbar / bezier.md
Last active August 9, 2019 08:32
bezier曲线点
export const bezier = function (points, times) {
    var bezier_points = [];
    var points_D = [];
    var points_E = [];
    const DIST_AB = Math.sqrt(Math.pow(points[1]['x'] - points[0]['x'], 2) + Math.pow(points[1]['y'] - points[0]['y'], 2));
    const DIST_BC = Math.sqrt(Math.pow(points[2]['x'] - points[1]['x'], 2) + Math.pow(points[2]['y'] - points[1]['y'], 2));
    const EACH_MOVE_AD = DIST_AB / times;
    const EACH_MOVE_BE = DIST_BC / times;
    const TAN_AB = (points[1]['y'] - points[0]['y']) / (points[1]['x'] - points[0]['x']);
@ixqbar
ixqbar / index.html
Created July 3, 2019 10:31 — forked from umidjons/index.html
Upload File using jQuery.ajax() with progress support
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Upload File using jQuery.ajax() with progress support</title>
</head>
<body>
<input type="file" name="file" id="sel-file"/>
@ixqbar
ixqbar / class.blade.php
Created June 12, 2019 08:26 — forked from webarthur/class.blade.php
PHP Blade template engine class
<?php
#namespace Laravel;
# Use: Blade::compile_all( $from_dir, $to_dir );
# visit: http://araujo.cc
# original class from http://cutlasswp.com
class Blade {