Skip to content

Instantly share code, notes, and snippets.

jz5 jz5

Block or report user

Report or block jz5

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 manifest.json
{
"name": "Show Asset Widget",
"version": "1.0",
"manifest_version": 2,
"description": "Show Unity asset widget on Unity Affiliate reporting page.",
"content_scripts": [
{
"matches": [
"https://console.partnerize.com/v2/reporting/perform",
"https://console.partnerize.com/v2/reporting/performance"
View script.js
const timer = setInterval(timer_tick, 500);
var prevId;
var div = document.createElement("div");
var body = document.getElementsByTagName("body")[0];
body.appendChild(div);
function timer_tick() {
var result = document.documentElement.innerHTML.match(/assetstore_package_(\d+)/);
if (!result) return;
View Save as PNGs.jsx
/**********************************************************
Save as PNGs.jsx
DESCRIPTION
This sample gets files specified by the user from the
selected folder and batch processes them and saves them
as PNGs in the user desired destination with the same
file name.
View wp-config.php
<?php
$connectstr_dbhost = '';
$connectstr_dbname = '';
$connectstr_dbusername = '';
$connectstr_dbpassword = '';
foreach ($_SERVER as $key => $value) {
if (strpos($key, "MYSQLCONNSTR_") !== 0) {
continue;
}
View IrohaComparer.cs
using System;
using System.Collections.Generic;
using System.Globalization;
public class IrohaComparer : IComparer<string>
{
private string iroha = "ィィぃイイいロロろハハはバばパぱニニにホホほボぼポぽヘヘへベべペぺトトとドどチチちヂぢリリりヌヌぬルルるヲヲをヺヮゎワワわヷヵゕカカかガがョョょヨヨよタタたダだレレれソソそゾぞッッっツツつヅづネネねナナなララらムムむゥゥぅウウうヴゔヰゐヸノノのォォぉオオおククくグぐャャゃヤヤやママまヶゖケケけゲげフフふブぶプぷココこゴごェェぇエエえテテてデでァァぁアアあササさザざキキきギぎュュゅユユゆメメめミミみシシしジじヱゑヹヒヒひビびピぴモモもセセせゼぜススすズずンンん";
public int Compare(string x, string y)
{
View Program.cs
class Program
{
static void Main(string[] args)
{
var names = new[] {
"あさみ りな",
"なみき なおと",
"いで なおと",
"はなおか なつき",
"まつうら やすふみ",
View ThisAddIn.vb
Imports Microsoft.Office.Interop.PowerPoint
Public Class ThisAddIn
Private Sub Application_SlideShowNextSlide(Wn As SlideShowWindow) Handles Application.SlideShowNextSlide
Dim r = New Random
Dim s As System.IO.Stream
Select Case r.Next(0, 3)
Case 0
s = My.Resources.camera_shutter_click_02
View html.xls
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<table>
<tr>
<td>あいうえお</td>
<td>かきくけこ</td>
</tr>
View twiml.xml
<Response>
<Say language="ja-JP">だるやなぎスピーチです。次のメッセージを発音してシャープキーを押しなさい。こんばんは</Say>
<Record action="http://example.jp/handler" finishOnKey="#"/>
</Response>
View posts.json
{
"found": 42,
"meta": {
"links": {
"counts": "https://public-api.wordpress.com/rest/v1.1/sites/90668331/post-counts/post"
},
"next_page": "value=2015-12-06T22%3A35%3A35%2B09%3A00&id=77563"
},
"posts": [
{
You can’t perform that action at this time.