This file contains hidden or 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
/* Rotary encoder handler for arduino. v2.0 | |
* | |
* Original author of version 1.1: Ben Buxton <[email protected]> | |
* https://github.com/buxtronix/arduino/tree/master/libraries/Rotary | |
* | |
* Author of version 2.0 based on 1.1: Frank Martinez <https://twitter.com/mnesarco> | |
* | |
* Copyright 2011 Ben Buxton. Licensed under the GNU GPL Version 3. | |
* Contact: [email protected] | |
* |
This file contains hidden or 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
from tkinter import W, Tk | |
from tkinter import ttk | |
from grid import Grid, Row, RowConfigure, ColumnConfigure, GridOptions, Dummy | |
window = Tk() | |
window.title("Grid Layout DSL") | |
window.geometry('400x400') | |
def on_click(): | |
print("Hello from Grid layout") |
This file contains hidden or 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/python3 | |
# | |
# Copyright 2020 Frank David Martinez M. (mnesarco at github) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains hidden or 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 | |
# ------------------------------------------------------------------------------ | |
# Install: | |
# 1. Put this script alongside with linuxdeploy or in the PATH | |
# 2. make it executable (chmod +x linuxdeploy-plugin-xdg) | |
# | |
# Usage: | |
# 1. Set the env variable XDG_ICON to your png icon. | |
# 2. Call with linuxdeploy |
This file contains hidden or 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
# file: objects.py | |
# Copyright 2020 Frank David Martínez Muñoz (mnesarco) | |
# License: MIT | |
from typing import Union | |
__all__ = ('self_properties', 'properties') | |
def self_properties(self, scope: dict, exclude=(), save_args: bool = False): |
This file contains hidden or 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 example.jee6mybatis; | |
import javax.ejb.EJB; | |
import javax.ejb.Stateless; | |
@Stateless | |
public class Client { | |
@EJB SessionWrapper mybatis; | |
This file contains hidden or 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 tests01 | |
object lab { | |
object PreparedStatement { | |
case class Param[A](val index : Int, val value : A) | |
case class BoundSql(val sql: String, val params : Seq[Param[_]]) | |
This file contains hidden or 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 2011 The myBatis Team | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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 2011 The myBatis Team | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |