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
--- a/src/modules/engines/gl_common/evas_gl_texture.c | |
+++ b/src/modules/engines/gl_common/evas_gl_texture.c | |
@@ -54,6 +54,42 @@ static const struct { | |
#endif | |
}; | |
+static const GLenum matching_rgba[] = { GL_RGBA4, GL_RGBA8, GL_RGBA12, GL_RGBA16, 0x0 }; | |
+static const GLenum matching_alpha[] = { GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 0x0 }; | |
+static const GLenum matching_luminance[] = { GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, 0x0 }; | |
+static const GLenum matching_luminance_alpha[] = { GL_LUMINANCE4_ALPHA4, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, 0x0 }; |
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/makepkg 2014-05-04 04:49:07.000000000 +0200 | |
+++ /home/moritz/bin/xxpkg 2014-06-03 13:35:45.311896184 +0200 | |
@@ -25,8 +25,8 @@ | |
# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
# | |
-# makepkg uses quite a few external programs during its execution. You | |
-# need to have at least the following installed for makepkg to function: | |
+# makepkg uses quite a few external programs during its execution. You | |
+# need to have at least the following installed for makepkg to function: |
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
open Core.Std;; | |
let read_and_convert = | |
let rec aux line = | |
match line with | |
| None -> () (* EOF *) | |
| Some txt -> | |
try print_endline (Int.to_string (Int.of_string txt)); with | |
Failure detail -> print_endline detail; ; (* End of try/with*) | |
aux (In_channel.input_line In_channel.stdin) |
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
type token = | |
| Text of char | |
| Comment of string | |
let rec lex = parser | |
| [< ''/'; p = parser (* left factoring... *) | |
| [< ''/'; stream >] -> | |
let buffer = Buffer.create 1 in | |
lex_comment buffer stream | |
| [< ''*'; stream >] -> |
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 | |
set -e | |
# | |
# Path definitions | |
# | |
TOOLCHAIN_ROOT_DIR="${PWD}/$(dirname $0)" | |
TOOLCHAIN_DL_DIR="${TOOLCHAIN_ROOT_DIR}/dl" | |
TOOLCHAIN_OUT_DIR="${TOOLCHAIN_ROOT_DIR}/output" |
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
lines = File.readlines(ARGV[0]) | |
lines.map! do |line| | |
line = line.chomp | |
if line.length > 8 and line[7..8] == "04" then | |
addr = line[9..12].to_i(16) | |
addr &= 0x1fff | |
line[9..12] = addr.to_s(16).upcase.rjust(4, "0") | |
line[13..14] = (((~line[1..-3].scan(/../).inject(0) {|sum, s| sum + s.to_i(16) }) & 0xFF) + 1).to_s(16).upcase | |
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
(* | |
* Copyright (c) 2015 Moritz Bitsch <moritzbitsch@gmail.com> | |
* | |
* Permission to use, copy, modify, and distribute this software for any | |
* purpose with or without fee is hereby granted, provided that the above | |
* copyright notice and this permission notice appear in all copies. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
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 main | |
import ( | |
"bitbucket.org/madmo/daemonize" | |
"fmt" | |
"log" | |
"log/syslog" | |
"os" | |
"os/signal" | |
) |
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 'thread' | |
class Lexer | |
attr_accessor :start | |
attr_accessor :pos | |
attr_accessor :tokens | |
def initialize (input, output) |
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) 2012, Moritz Bitsch <moritzbitsch@googlemail.com> | |
// | |
// Permission to use, copy, modify, and/or distribute this software for any | |
// purpose with or without fee is hereby granted, provided that the above | |
// copyright notice and this permission notice appear in all copies. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
OlderNewer