Skip to content

Instantly share code, notes, and snippets.

View suneo3476's full-sized avatar

suneo3476 suneo3476

  • Hamamatsu, Shizuoka, Japan
View GitHub Profile
@terrillmoore
terrillmoore / OpenSSL-1_1_0-stable-VS2015.md
Last active October 28, 2022 00:38
Building OpenSSL 1.1.0 with Microsoft VS 2015

Building OpenSSL 1.1.0 with Microsoft VS 2015

MCCI needs OpenSSL for a Windows project (that will be cross-platform). A casual search didn't turn up either a good source for cross-platform libraries, which meant we have to build them ourselves. A deeper search found a detailed guide here, and yet the details don't match what I found when I checked out the code; and the post doesn't talk about doing it directly from GitHub (which I wanted to do).

Here's the procedure for building OpenSSL on 64-bit Windows 10, with Visual Studio 2015. Others (July 2019) report that this procedure works with Visual Studio 2017 as well. I've not had a chance to try with Visual Studio 2019.

As this procedure dates from late 2016, you may find that there's a CMake or other, newer, procedure that's more suitable.

  1. If you don't have it, please install git bash from git-scm.com.
@firstspring1845
firstspring1845 / mikutter_dig_up.rb
Created May 13, 2014 13:46
掘り返されたツイートを既にRTしててRTできない、そんなあなたに、RTを取り消してやり直すmikutterプラグインです
#-*- coding: utf-8 -*-
Plugin.create :dig_up do
command(:dig_up,
name: '掘り返し',
condition: Plugin::Command[:HasOneMessage],
visible: true,
role: :timeline) do |opt|
message = opt.messages.first
(Service.primary.twitter/'statuses/show').json(:id => message.id, :include_my_retweet => true).next do |m|
@pasberth
pasberth / README.md
Last active December 22, 2015 01:38
Idris で hello world

(Idris version 0.9.7) でテストされています

$ idris a.idr --target javascript -o hello.js
$ node hello.js
hello world
@nk0t
nk0t / HTTPy.py
Created August 9, 2013 15:34
simple http server in python
import os
import os.path
import socket
import threading
import subprocess
import locale
server_string = 'Server: httpy/1.0\r\n'
document_root = ''
index_page = ''
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>スタイルシートそのものを変更する</title>
<link rel="stylesheet" type="text/css" href="style-a.css" id="style-a" disabled="true">
<link rel="stylesheet" type="text/css" href="style-b.css" id="style-b" disabled="true">
<style id="style-c">
#foo {
@penguin2716
penguin2716 / mikutter_jins_pc.rb
Created March 19, 2013 09:08
JINS PCに対応するためのmikutterプラグイン
#-*- coding: utf-8 -*-
Plugin.create :jins_pc do
filter_message_background_color do | mp, color |
# 青成分を50%カット
[mp, [color[0],color[1],(color[2] * 0.5).to_i]]
end
end
@alterakey
alterakey / TwitterAuthService.java
Last active December 11, 2015 20:48
One-off, in-app, Twitter4j sign-on example
/*
* Copyright 2013 Takahiro Yoshimura
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
public class pai {
public static double main(int x) {
int y;
long z;
long a;
for (y = 0; y <= x; y++) {
z = 3*Math.pow(2,y);
a = z*Math.sin(180/z);
}
}
@penguin2716
penguin2716 / favolo.txt
Created August 4, 2012 16:39
ふぁぼろ
ふぁぼろ/ファボレグラフィティ
としぁがツイートするずっとずっと前にはもう
ふぁぼ數60万は既に超えたっていうのに
みんながふぁぼり続けてる 限定の君のTLはふぁぼられ仕様
それって僕のよりはやく増えるって本当かい?ただ壊れてる
画面を覆う膨大なふぁぼられ通知には
@slywalker
slywalker / bootstrap_form.php
Created October 6, 2011 05:15
form helper for CakePHP on twitter bootstrap
<?php
class BootstrapFormHelper extends AppHelper {
public $helpers = array('Html', 'Form');
public function input($name, $options = array()) {
$default = array(
'type' => null,
'label' => null,
'before' => null, // to convert .input-prepend