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
diff --git a/libskk/state.vala b/libskk/state.vala | |
index f383826..53b0f59 100644 | |
--- a/libskk/state.vala | |
+++ b/libskk/state.vala | |
@@ -989,14 +989,22 @@ namespace Skk { | |
state.recursive_edit_start (state.get_yomi (), state.okuri); | |
if (state.candidates.size == 0) { | |
state.candidates.clear (); | |
- state.handler_type = typeof (StartStateHandler); | |
+ if (state.abbrev.len > 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
diff --git a/libskk/state.vala b/libskk/state.vala | |
index 53b0f59..1b552f0 100644 | |
--- a/libskk/state.vala | |
+++ b/libskk/state.vala | |
@@ -822,7 +822,7 @@ namespace Skk { | |
key = state.where_is ("next-candidate"); | |
return false; | |
} else { | |
- state.rom_kana_converter.output = kana; | |
+ state.rom_kana_converter.output.append (kana); |
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/ruby | |
k = 1000.0 | |
r = 0.02 / 12 | |
n = 10 * 12 | |
r2 = 1.0 | |
n.times do | |
r2 *= 1 + r | |
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
#!/usr/bin/ruby | |
require 'digest' | |
require 'fileutils' | |
require 'tempfile' | |
require 'yaml' | |
require 'uri' | |
class DFS | |
INDEXNAME = 'index' |
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
pcm.!default { | |
type hw | |
card 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
# carla-git-1.9.5~git20150817$ git diff | |
diff --git a/source/backend/plugin/CarlaPluginVST2.cpp b/source/backend/plugin/CarlaPluginVST2.cpp | |
index 6ce97c1..1fb7fe5 100644 | |
--- a/source/backend/plugin/CarlaPluginVST2.cpp | |
+++ b/source/backend/plugin/CarlaPluginVST2.cpp | |
@@ -2196,6 +2196,7 @@ public: | |
pData->options |= PLUGIN_OPTION_SEND_NOTE_AFTERTOUCH; | |
pData->options |= PLUGIN_OPTION_SEND_PITCHBEND; | |
pData->options |= PLUGIN_OPTION_SEND_ALL_SOUND_OFF; | |
+ pData->options |= PLUGIN_OPTION_SEND_CONTROL_CHANGES; |
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
--- taglib-1.5/taglib/toolkit/tstring.cpp.orig 2008-02-05 00:14:45.000000000 +0900 | |
+++ taglib-1.5/taglib/toolkit/tstring.cpp 2008-08-23 19:52:16.000000000 +0900 | |
@@ -208,12 +208,22 @@ | |
s.resize(d->data.size()); | |
if(!unicode) { | |
- std::string::iterator targetIt = s.begin(); | |
- for(wstring::const_iterator it = d->data.begin(); it != d->data.end(); it++) { | |
- *targetIt = char(*it); | |
- ++targetIt; |
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 DiscID, CDDB, sys, os | |
from eyeD3.tag import * | |
def disc_id(track): | |
frame2array = lambda(f): (f/(60*75), (f/75)%60, f%75) | |
last = len(track) - 1 | |
track_frames = [] | |
checksum = 0 | |
for i in range(1, last + 1): |
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/ruby1.9 -rnkf | |
module NKF | |
puts ARGF.file.map{|l|[guess(l),nkf('-w', l)]}.select{|i|i[0]!=ASCII}.join(' ') | |
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
//import java.io.ByteArrayInputStream | |
import java.io.{BufferedReader,InputStreamReader} | |
object A { | |
def main(a: Array[String]) { | |
for (i <- 0 until 10) { | |
println("hello " + i) | |
} | |
val ls = Runtime.getRuntime.exec("ls -l") | |
var in = ls.getInputStream |