Advertising
advertising
related pastes to tag 'encode'
- 2051145 - budi encode decode
- preview unavailable
- 1994111 - php json encode with javascript : php javascript json function encode
-
- // PHP 4 >= 4.0.1, PHP 5
- {
- '/(?<=:)"function\((?:(?!}").)*}"/',
- json_encode($array)
- );
- 994262 - De/Encode - EcKstasy encode eckstasy decode
- preview unavailable
- 994260 - Encoder Decoder Script - EcKsta encode eckstasy decode
- preview unavailable
- 909682 - extract_audio.rb: mplayer ruby audio lame encode
-
- #!/usr/bin/env ruby
- #
- # Simple script to extract the audio part of a video
- # and encode it to mp3.
- # Depends on 'mplayer' and 'lame'
- STDOUT.sync = true
- 856155 - extract_audio.rb: mplayer ruby audio lame encode
-
- #!/usr/bin/env ruby
- STDOUT.sync = true
- name = ARGV[0]
- abort("usage: #{$0} filename") if name.nil?
- abort("a file name 'audiodump.wav' already exist") if File.exist? 'audiodump.wav'
- 821255 - Python bencode/decode: bittorrent encode bencode
-
- def encode(arg):
- ''' Given that we're converting between variable formats,
- manual typechecking seems excusable here '''
- return {
- int : lambda x: 'i%ie' % x,
- str : lambda x: '%i:%s' % (len(x), x),
- list : lambda x: 'l%se' % ''.join(map(encode, arg)),
- dict : lambda x: 'd%se' % ''.join(''.join(map(encode, i)) for i in arg.items())
- 819134 - Python bencode/decode: bittorrent encode bencode
-
- def encode(arg):
- ''' Given that we're converting between variable formats,
- manual typechecking seems excusable here '''
- return {
- int : lambda x: 'i%ie' % x,
- str : lambda x: '%i:%s' % (len(x), x),
- list : lambda x: 'l%se' % ''.join(map(encode, arg)),
- dict : lambda x: 'd%se' % ''.join(''.join(map(encode, i)) for i in arg.items())