Skip to content

Instantly share code, notes, and snippets.

@YooWaan
YooWaan / web.m
Created January 25, 2012 10:28
NSURLConnectionDelegate for self signed
//
// Description
// ----------------
//
// This is sample for handle self sigined certificate.
//
// This code have 3 way for building.
//
// - Default : Can't connect self signed certificate server.
// - AUTH : Can connect self signed certificate server by old style.
@YooWaan
YooWaan / DSAppDelegate.m
Created March 27, 2012 06:28
EmittingCell Sample
//
// DSAppDelegate.m
// DrawSmoke
//
// Created by developer on 12/03/27.
// Copyright (c) 2012 your good mind. All rights reserved.
//
#import "DSAppDelegate.h"
#import <QuartzCore/QuartzCore.h>
@YooWaan
YooWaan / WebServer.java
Created April 18, 2012 12:41
Embedded tomcat and jetty.
//
// Embbed Web Server
//
// Property
// ----------
//
// server.port port number
// server.basedir base dir path.
// server.webapps webapp dir name.
// server.contextpath context path of web app
#!/bin/bash
# ------------ parameters ------------
api_version=$1
# if need set, please remove these files.
token_file="v2.gapi.token"
user_code_file="v3.gapi.token"
@YooWaan
YooWaan / python-header.txt
Created July 5, 2014 16:45
python header
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright %year% YooWaan. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
package jp.plainworks.nokizal.appserv.tool;
import java.util.TimeZone;
import org.springframework.boot.SpringApplication;
import org.springframework.stereotype.Component;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@YooWaan
YooWaan / cc
Created October 10, 2016 07:58
easy clang exec shell
#!/bin/sh
CC=clang++
#CC=g++
SUF=.cpp
IN=${1}${SUF}
OUT=${1}
OPT="-std=c++11 ${2}"
rm -rf ${OUT}
@YooWaan
YooWaan / live.html
Last active January 19, 2020 19:56
nginx hls
<!DOCTYPE html>
<html lang="en" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="http://vjs.zencdn.net/5.19.0/video-js.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/hls.js/latest/hls.min.js"></script>
</head>
<body>

optional setup

bash configuration

cd ~
touch .bash_profile .bashrc

vim .bash_profile
if [ -f ~/.bashrc ]; then
@YooWaan
YooWaan / skill.csv
Last active December 29, 2019 05:05
EQ Table
対象 認識力 実施力
個人 自己認識 自己管理
社会・チーム 社会・チーム内認識 関係構築