Share Code Quickly

What is Harigami?

Harigami is a simple source code sharing service. You can share source code by an URL which is issued after submission.
You can also run your source code online such as Python, Ruby, JavaScript and so on.
For free.Use for code review.
Preferences

anonymous No title
HTML
<p><strong>👇お得情報・新着ニュースも配信中♪ ジャパカジLINE&nbsp;</strong></p>

<p>&nbsp;お得情報・新着ニュースも配信してます♪&nbsp; つぶやき、お問い合わせもこちらから!</p>

<div><a href="https://line.me/ti/p/uVKk2Tsspk" target="_blank" title=""><img alt="ジャパカジLINEはじめました!詳細ページへ" class="full hidden-xs" src="/images/home/images/line/japacasi-line-ad-header-pc_751x96.jpg" style="" /><img alt="ジャパカジLINEはじめました!詳細ページへ" class="full visible-xs" src="/images/home/images/line/japacasi-line-ad-header-mobile_351x89.jpg" style="" /></a></div>

<p>&nbsp;</p>

<p><strong>👇雑談や質問が気軽にできる♪&nbsp;ジャパカジ掲示板</strong></p>

<p>ユーザー同士の交流や雑談、ジャパカジスタッフへのお問い合わせ、なんでも大歓迎!</p>

<div><a href="/forum" target="_blank" title=""><img alt="ジャパカジ掲示板はじめました!詳細ページへ" class="full hidden-xs" src="/images/home/images/casino-forum-ad-pc_1502x192.jpg" style="" /><img alt="ジャパカジ掲示板はじめました!詳細ページへ" class="full visible-xs" font-size:10px="" src="/images/home/images/casino-forum-ad-mobile_702x178.jpg" style="" /></a></div>
anonymous No title
JavaScript
function onFormSubmit(e){
 var itemResponses = e.values;
}

var fromemail = itemResponses[2].getResponse();


// フォーム送信されたら起動され、最終行の内容をメールに記載して、送信する
function wmapp_contact_me_mail_send() {

  // 件名、本文
  var subject = '面接後アンケートが送信されました'; 
  var body    = '';

  // メール送信先(管理者等)
  var mail_admin = 'test@gmail.com';
  var mail_cc    = 'test@gmail.com';
  var mail_reply = fromemail;
  var mail_to    = 'test@gmail.com';

  try{    
    // スプレッドシートの操作
    var sh   = SpreadsheetApp.getActiveSheet();
    var rows = sh.getLastRow();
    var cols = sh.getLastColumn();
    var rg   = sh.getDataRange();
    Logger.log('rows='+rows+' cols='+cols);
    
    // メール本文作成
    for (var j = 1; j <= cols; j++ ) {
      var clmn_name  = rg.getCell(1, j).getValue();    // カラム名
      var clmn_value = rg.getCell(rows, j).getValue(); // 入力値 
      body += ( '【' + clmn_name + '】' + '\n' + clmn_value + '\n\n' );
      }
    
    // メール送信
    if ( mail_to ) {
      MailApp.sendEmail(mail_to, subject, body, {cc : mail_cc, replyTo : mail_reply});
    }else{
      MailApp.sendEmail(mail_admin, 'error spreadsheet none mailaddress', body);
    }
  }

  catch(e){
    MailApp.sendEmail(mail_admin, 'error spreadsheet func: wmapp_contact_me_mail_send()', e.message);
  } 
}
anonymous No title
ObjectiveC
#include "XXXRootListController.h"
#import <spawn.h>

@implementation XXXRootListController

- (NSArray *)specifiers {
	if (!_specifiers) {
		_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
	}

	return _specifiers;
}

-(void)credits {
UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"Credits" message:@"Test by Rowl" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert1 show];
}

- (void)resp

{

pid_t pid;

int status;

const char* args[] = {"killall", "-9", "backboardd", NULL};

posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);

waitpid(pid, &status, WEXITED);

}

- (void)twitter {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/Rowl_JB"]];
}

@synthesize respringButton;

- (instancetype)init {
    self = [super init];

    if (self) {
        HBAppearanceSettings *appearanceSettings = [[HBAppearanceSettings alloc] init];
        appearanceSettings.tintColor = [UIColor colorWithRed:0.1f green:0.1f blue:0.1f alpha:1];
        appearanceSettings.tableViewCellSeparatorColor = [UIColor colorWithWhite:0 alpha:0];
        self.hb_appearanceSettings = appearanceSettings;
        self.respringButton = [[UIBarButtonItem alloc] initWithTitle:@"Respring" 
                                    style:UIBarButtonItemStylePlain
                                    target:self 
                                    action:@selector(respring:)];
        self.respringButton.tintColor = [UIColor redColor];
        self.navigationItem.rightBarButtonItem = self.respringButton;
    }

    return self;
}

- (void)respring:(id)sender {
    NSTask *t = [[[NSTask alloc] init] autorelease];
    [t setLaunchPath:@"/usr/bin/killall"];
    [t setArguments:[NSArray arrayWithObjects:@"backboardd", nil]];
    [t launch];
}

@end
anonymous No title
Python
#coding:UTF-8
import discord
from discord.ext import tasks
from datetime import datetime 

TOKEN = "**********" #トークン
CHANNEL_ID = ********** #チャンネルID
# 接続に必要なオブジェクトを生成
client = discord.Client()


@client.event
async def on_ready():
    loop.start()

# 60秒に一回ループ
@tasks.loop(seconds=60)
async def loop():
    # 現在の時刻
    now = datetime.now().strftime('%H:%M')
    if now == '07:00':
        channel = client.get_channel(CHANNEL_ID)
        await channel.send('おはよう')  

# Botの起動とDiscordサーバーへの接続
client.run(TOKEN)
anonymous No title
JavaScript
document.addEventListener("DOMContentLoaded", function () {
  let lazyObjects = [].slice.call(document.querySelectorAll(".lazy img, .lazy"));
  // IntersectionObserver対応ブラウザのみ実行
  if ("IntersectionObserver" in window) {
    // IntersectionObserverオブジェクト生成
    let lazyObjectsObserver = new IntersectionObserver(function (entries, observer) {
      entries.forEach(function (entry) {
        // この要素が画面に入ってきた場合
        if (entry.isIntersecting) {
          let lazyObject = entry.target;
          if (lazyObject.dataset.hasOwnProperty('src')) {
            lazyObject.src = lazyObject.dataset.src;
            lazyObject.dataset.src = '';
            delete lazyObject.dataset.src;
          }
          if (lazyObject.dataset.hasOwnProperty('srcset')) {
            lazyObject.srcset = lazyObject.dataset.srcset;
            lazyObject.dataset.srcset = '';
            delete lazyObject.dataset.srcset;
          }
          if (lazyObject.dataset.hasOwnProperty('bnr01') || lazyObject.dataset.hasOwnProperty('bnr02')) {
            var loadBnr = new Promise((resolve, reject) => {
              load_bnrdata({
                json_bnr: './kanto/json/bnr_g.json',
                page_id: 'グランドトップ',
                pc_sp: 'sp'
              })
            })
            loadBnr
              .then(slickBnr())
              .catch(() => {
                console.log('Promise 失敗')
              })
          }
          if (lazyObject.dataset.hasOwnProperty('news')) {
            load_newsdata({
              json_news: './kanto/json/news.json',
              page_id: 'グランドトップ',
              pc_sp: 'sp'
            });
          }
          if (lazyObject.dataset.hasOwnProperty('product')) {
            $.insertHtml({
              jsonFiles: ['grand-top',],
              dataFolder: './kanto/json/',
              targetClass: 'jcom',
              theme: 0,
              minmax: 1
            });
          }
          lazyObject.classList.remove("lazy");
          lazyObjectsObserver.unobserve(lazyObject);
        }
      });
    });
    lazyObjects.forEach(function (lazyObject) {
      // 観察を開始します
      lazyObjectsObserver.observe(lazyObject);
    });
  }
});
anonymous No title
JavaScript
document.addEventListener("DOMContentLoaded", function () {
  let lazyObjects = [].slice.call(document.querySelectorAll(".lazy img, .lazy"));
  // IntersectionObserver対応ブラウザのみ実行
  if ("IntersectionObserver" in window) {
    // IntersectionObserverオブジェクト生成
    let lazyImageObserver = new IntersectionObserver(function (entries, observer) {
      entries.forEach(function (entry) {
        // この要素が画面に入ってきた場合
        if (entry.isIntersecting) {
          let lazyImage = entry.target;
          if (lazyImage.dataset.hasOwnProperty('src')) {
            lazyImage.src = lazyImage.dataset.src;
            lazyImage.dataset.src = '';
            delete lazyImage.dataset.src;
          }
          if (lazyImage.dataset.hasOwnProperty('srcset')) {
            lazyImage.srcset = lazyImage.dataset.srcset;
            lazyImage.dataset.srcset = '';
            delete lazyImage.dataset.srcset;
          }
          if (lazyImage.dataset.hasOwnProperty('bnr01') || lazyImage.dataset.hasOwnProperty('bnr02')) {
            var loadBnr = new Promise((resolve, reject) => {
              load_bnrdata({
                json_bnr: './kanto/json/bnr_g.json',
                page_id: 'グランドトップ',
                pc_sp: 'sp'
              })
            })
            loadBnr
              .then(slickBnr())
              .catch(() => {
                console.log('Promise 失敗')
              })
          }
          if (lazyImage.dataset.hasOwnProperty('news')) {
            load_newsdata({
              json_news: './kanto/json/news.json',
              page_id: 'グランドトップ',
              pc_sp: 'sp'
            });
          }
          if (lazyImage.dataset.hasOwnProperty('product')) {
            $.insertHtml({
              jsonFiles: ['grand-top',],
              dataFolder: './kanto/json/',
              targetClass: 'jcom',
              theme: 0,
              minmax: 1
            });
          }
          lazyImage.classList.remove("lazy");
          lazyImageObserver.unobserve(lazyImage);
        }
      });
    });
    lazyObjects.forEach(function (lazyImage) {
      // 観察を開始します
      lazyImageObserver.observe(lazyImage);
    });
  }
});
anonymous No title
PlainText
💩
anonymous No title
CSS
💩
anonymous No title
HTML
💩
anonymous No title
C#
💩