Skip to content

Instantly share code, notes, and snippets.

View iraniamir's full-sized avatar
💪
Let's Dance

Amir Irani iraniamir

💪
Let's Dance
  • Internet
View GitHub Profile
@iraniamir
iraniamir / preview-pagination.jsx
Created January 28, 2018 08:28
Mithril Bootstrap Pagination
import m from "mithril";
export default {
go(number) {
this.node.state[this.state] = number;
this.redraw();
},
eachPage(number, active = false) {
@iraniamir
iraniamir / index.html
Created October 2, 2017 12:13
titleNotifier
<html>
<head>
<title> search in array </title>
</head>
<body>
<script src="jquery.js"></script>
<script src='index.js'></script>
<script>
@iraniamir
iraniamir / index.html
Created October 2, 2017 08:55
Bootstrap notification alert
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
// PoweredBy @mir
javascript: location.href = "http://shatelland.com/upload#/home";
if ($('shatelhack').length) {
console.log('ṠḧḀṮḕḶḧḀḉḲ WAS ḶṏḀḊḕḊ !! 😠');
} else {
$('body').append('<shatelhack></shatelhack>');
$('.leech-modal .modal-body').append('<div class="form-group clearfix"><label for="fileAddressTA" class="col-sm-3 control-label pull-right">آدرس فایل ها</label><div class="col-sm-9 pull-right"><textarea class="form-control text-left ng-pristine ng-valid ng-touched" id="fileAddressTA" rows="15" placeholder="multi Address | Powered By @mir"></textarea></div></div>');
$('.leech-modal .modal-footer').append('<button type="button" class="btn btn-warning" onclick="repeat();">انتقال فایل ها</button>');
function repeat() {
@iraniamir
iraniamir / action.js
Last active January 5, 2017 19:42
aparat.com application programing interface
var Client = require('node-rest-client').Client;
var client = new Client();
var cb = require('cb');
class Actions {
constructor() {
this.timeout = 10000; // 10 Sec
}
@iraniamir
iraniamir / aparat.class.php
Last active April 5, 2020 11:24
aparat.com application programing interface
<?php
/**
* Aparat Class
*
* @tools of this package :
* function::mostviewedvideos()
* function::lastvideos()
* function::vitrinvideos()
* function::categories()
* function::categoryvideos()