Skip to content

Instantly share code, notes, and snippets.

View shiki's full-sized avatar

Jayson Basañes shiki

View GitHub Profile
/**
* Reusable vertical slider component used on dashboard-upload tab and other tabs.
*/
T.Components.VerticalSlider = {
dataNamespace: "VerticalSlider",
container: null,
pagesContainer: null,
pages: null,
/**
<div id="upload-tabs" class="dash-content-tabs">
<ul>
<li class="dash-content-tab-link"><a href="javascript:;" rel="0"><span>From File</span></a></li>
<li class="dash-content-tab-link"><a href="javascript:;" rel="1"><span>From URL</span></a></li>
</ul>
</div>
<div id="upload-pages-slide-wrap" class="vslide-wrap">
<div id="upload-pages" class="pages">
<div class="page">
-locale en_US --keep-as3-metadata+=TypeHint,EditorData,Embed -managers flash.fonts.JREFontManager flash.fonts.BatikFontManager flash.fonts.AFEFontManager
@shiki
shiki / beanstalkd
Created August 9, 2010 13:41
For CentOS, a modified /etc/init.d/beanstlkd file which creates a pid file in /var/run/beanstalkd.pid
#!/bin/sh
#
# beanstalkd - a simple, fast workqueue service
#
# chkconfig: - 57 47
# description: a simple, fast workqueue service
# processname: beanstalkd
# config: /etc/sysconfig/beanstalkd
#
@shiki
shiki / gist:1408295
Created November 30, 2011 07:01 — forked from ferower/gist:1408279
public static function getSubTopicIdsOfTopic($topicId, &$topics = null)
{
$list = array();
if (empty($topics))
$topics = PTopic::model()->findAll();
foreach ($topics as $key => $topic) {
if ($topic->parentId == $topicId) {
$list[] = $topic->id;
$list = array_merge($list, self::getSubTopicIdsOfTopic($topic->id, $topics));
}
@shiki
shiki / gist:5225349
Created March 22, 2013 22:49
php54-imagick install config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/opt/boxen/homebrew/Cellar/php54-imagick/3.1.0RC2 --with-php-config=/opt/boxen/homebrew/Cellar/php54/5.4.12/bin/php-config
## --------- ##
## Platform. ##
#!/usr/bin/env php
<?php
/*
Copyright 2013 Stuart Carnie and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to

Keybase proof

I hereby claim:

  • I am shiki on github.
  • I am shiki (https://keybase.io/shiki) on keybase.
  • I have a public key ASBaTL2eS2p_By6IuQMrY9yrTRT7jYHIA3ONmtkkw4B91go

To claim this, I am signing this object:

@shiki
shiki / git.diff
Created February 14, 2019 22:38
WordPress-Android with local Automattic-Tracks-Android
diff --git a/libs/analytics/WordPressAnalytics/build.gradle b/libs/analytics/WordPressAnalytics/build.gradle
index ab9ca52842..f1de0bbf65 100644
--- a/libs/analytics/WordPressAnalytics/build.gradle
+++ b/libs/analytics/WordPressAnalytics/build.gradle
@@ -19,7 +19,7 @@ repositories {
}
dependencies {
- implementation 'com.automattic:tracks:1.1.5'
+ api project(':tracks')
diff --git a/WordPress/Classes/ViewRelated/System/NetworkAware.swift b/WordPress/Classes/ViewRelated/System/NetworkAware.swift
index 2a15b3b88d..3533976cd8 100644
--- a/WordPress/Classes/ViewRelated/System/NetworkAware.swift
+++ b/WordPress/Classes/ViewRelated/System/NetworkAware.swift
@@ -1,3 +1,4 @@
+import WordPressFlux
/// Abstracts elements that need to be aware of the network connection status.
protocol NetworkAware {
@@ -31,9 +32,11 @@ extension NetworkAwareUI {