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 rsasample; | |
import java.io.ByteArrayOutputStream; | |
import java.math.BigInteger; | |
import java.security.Key; | |
import java.security.KeyFactory; | |
import java.security.KeyPair; | |
import java.security.KeyPairGenerator; | |
import java.security.interfaces.RSAPrivateKey; |
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 | |
# https://gist.github.com/robwierzbowski/5430952/ | |
# Create and push to a new github repo from the command line. | |
# Grabs sensible defaults from the containing folder and `.gitconfig`. | |
# Refinements welcome. | |
# Gather constant vars | |
CURRENTDIR=${PWD##*/} | |
GITHUBUSER=$(git config github.user) |
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
def toCamelCase(String string) { | |
String result = "" | |
string.findAll("[^\\W]+") { String word -> | |
result += word.capitalize() | |
} | |
return result | |
} | |
afterEvaluate { project -> | |
Configuration runtimeConfiguration = project.configurations.getByName('compile') |
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
static const int64 nTargetSpacing = 2.5 * 60; // Guldencoin: 2.5 minutes between block | |
unsigned int static DarkGravityWave3(const CBlockIndex* pindexLast, const CBlockHeader *pblock) { | |
/* current difficulty formula, darkcoin - DarkGravity v3, written by Evan Duffield - [email protected] */ | |
const CBlockIndex *BlockLastSolved = pindexLast; | |
const CBlockIndex *BlockReading = pindexLast; | |
const CBlockHeader *BlockCreating = pblock; | |
BlockCreating = BlockCreating; | |
int64 nActualTimespan = 0; |
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
/*************************************************************************************************** | |
* Copyright (c) 2014 Rüdiger Herrmann | |
* All rights reserved. This program and the accompanying materials are made available under the | |
* terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Rüdiger Herrmann - initial API and implementation | |
**************************************************************************************************/ | |
package com.codeaffine.jgit; |
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
############################################################ | |
# Dockerfile to build Android project and use Jenkins CI | |
# | |
############################################################ | |
FROM ubuntu:14.04 | |
MAINTAINER eluleci <[email protected]> | |
RUN apt-get update |
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 file = DriveApp.getFileById("FILE_ID_HERE");//自分がオーナーのファイル | |
var targetMail = "[email protected]"; | |
var oldMail; | |
file.setOwner(targetMail); | |
oldMail = Session.getActiveUser().getEmail(); | |
file.removeEditor(oldMail); |
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
{ | |
"name": "fish.pufferfish.raw", | |
"id": 206, | |
"icon": "fish_raw_puffer_fish", | |
"use_animation": "eat", | |
"use_duration": 32, | |
"max_damage": 0, | |
"stacked_by_data": true, | |
"food": { |
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 ruby | |
# Simple script to convert .cue files to FFMPEG Metadata files | |
# This can then be fed to ffmpeg to add chapters etc. to | |
# an MP4 or MKV file, e.g. | |
# | |
# ./cue2ffmeta.rb <FILE>.cue <TOTAL_LENGTH_IN_SECONDS> > metadata.txt | |
# ffmpeg -i <INPUT> -i metadata.txt -map_metadata 1 -codec copy <OUTPUT> | |
# | |
# (the TOTAL_LENGTH_IN_SECONDS is optional) |
OlderNewer