This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.dealforest.sample.crypt; | |
import javax.crypto.BadPaddingException; | |
import javax.crypto.Cipher; | |
import javax.crypto.IllegalBlockSizeException; | |
import javax.crypto.NoSuchPaddingException; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.security.InvalidKeyException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MnistImageType.swift | |
// | |
// This file was automatically generated and should not be edited. | |
// | |
import CoreML | |
/// Model Prediction Input Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
prev="$1" | |
new="$2" | |
branch_switch="$3" | |
if [ -z "$branch_switch" ] || [ $branch_switch -eq 0 ]; then | |
exit 0 # this was a file checkout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import lldb | |
def slack(debugger, command, result, internal_dict): | |
frame = lldb.debugger.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame() | |
path = command | |
lldb.debugger.HandleCommand(""" | |
expr -l swift -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
temp_dir=`mktemp --directory` | |
target_dir=/Applications/Xcode-beta.app/Contents/MacOS | |
if [ -e $target_dir/Xcode.signed ]; then | |
echo "already exists Xcode.signed" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define pv | |
if $argc == 0 | |
po [[[UIApplication sharedApplication] keyWindow] recursiveDescription] | |
end | |
if $argc == 1 | |
po [$arg0 recursiveDescription] | |
end | |
end | |
define st |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* データ | |
> select * from hoge; | |
+------+------+ | |
| fuga | foo | | |
+------+------+ | |
| 1 | 2 | | |
| 3 | 4 | | |
| 5 | 6 | | |
+------+------+ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Constants < Settingslogic | |
source "#{Rails.root}/config/constants.yml" | |
namespace Rails.env | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'); | |
var ws = require('websocket-server'); | |
var host = 'localhost'; | |
var port = 10000; | |
var webSocket = ws.createServer(); | |
webSocket.addListener("connection", function (connection) { | |
sys.puts("connect: " + connection._req.socket.remoteAddress); | |
connection.addListener("message", function (message) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use JSON::Syck; | |
use Data::Dumper; | |
my $a = { hoge => 'fuga' }; | |
my $b = { foo => $a, bar => $a }; | |
warn Dumper $b; |
NewerOlder