Skip to content

Instantly share code, notes, and snippets.

Eduard K antongorodezkiy

Block or report user

Report or block antongorodezkiy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vue-popper.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';
var Popper = require('popper.js');
module.exports = {
props: {
showPopper: {
type: Boolean,
View vue-star-rating.vue
<script>
module.exports = {
props: {
value: {
type: Number,
twoWay: true
},
disabled: {
type: Boolean,
default: false
View google-search-domains.json
[
{
"name": "Afghanistan",
"host": "www.google.com.af",
"code": "AF"
},
{
"name": "Albania",
"host": "www.google.al",
"code": "AL"
View google-supported-languages.json
[
{
"code": "af",
"name": "Afrikaans"
},
{
"code": "am",
"name": "Amharic"
},
{
View vue-popper-directive.js
const Popper = require('popper.js');
(function (Vue) {
let VuePopperDirective = {
params: ['placement', 'content', 'show'],
popper: null,
initPopper() {
this.popper = new Popper(
View file_upload.php
<?php
class File_Upload
{
/**
* Index key from upload form
* @var string
*/
public $index_key = '';
/**
View example_post_status.php
<?php
// No, Thanks. Direct file access forbidden.
! defined( 'ABSPATH' ) AND exit;
// INIT
add_action( 'after_setup_theme', array( 'unavailable_post_status', 'init' ) );
class unavailable_post_status extends wp_custom_post_status
{
/**
View make_mysql_backup.sh
#!/bin/bash
# crontab
# 1 1 * * * root /bin/bash /path/to/script/mysql_backup.sh > /var/log/cron.log
### MySQL Server Login Info ###
MUSER="root" # mysql username, change this if needed
MPASS="root_pass" # mysql user password, change this
MHOST="localhost" # mysql host, change this if needed
MYSQL="$(which mysql)"
@antongorodezkiy
antongorodezkiy / backtrace.php
Created Jan 30, 2014
debug_backtrace() with files and lines only
View backtrace.php
<?php
function backtrace() {
$keys = array('file','line');
$target = array();
foreach(debug_backtrace() as $key => $s) {
/*if ($key == 0) {
continue;
}*/
@antongorodezkiy
antongorodezkiy / FreightRatesAndService.php
Last active Nov 27, 2018
UPS Freight API dummy class
View FreightRatesAndService.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class FreightRatesAndService {
protected $username = '';
protected $password = '';
protected $accessKey = '';
protected $sandbox = '';
protected $endpointUrl = '';
protected static $endpointUrls = array(
You can’t perform that action at this time.