| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
from kivy.lang import Builder | |
from kivy.base import runTouchApp | |
from kivy.uix.scrollview import ScrollView | |
Builder.load_string(''' | |
<ScrollLabel>: | |
Label: | |
size_hint_y:None | |
text_size:self.width,None | |
text:'l or emi psum '*1000 | |
height:self.texture_size[1] |
"""Hoverable Behaviour (changing when the mouse is on the widget by O. Poyen. | |
License: LGPL | |
""" | |
__author__ = 'Olivier POYEN' | |
from kivy.properties import BooleanProperty, ObjectProperty | |
from kivy.core.window import Window | |
class HoverBehavior(object): |
| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
#!/usr/bin/env python | |
import numpy | |
import sys | |
import timeit | |
try: | |
import numpy.core._dotblas | |
print 'FAST BLAS' | |
except ImportError: | |
print 'slow blas' |
#!/usr/bin/env python | |
# | |
# Convert a set of similarly-structured .xlsx files into a SQLite DB. | |
# | |
# For example, say you have hundreds of Excel files in a directory | |
# called "big-analysis-project" and that each of these Excel files | |
# has a worksheet containing the same set of columns. Rather than | |
# having hundreds of separate Excel files, it would be handy to have | |
# all their data inside one relational database management system. | |
# |
from kivy.base import runTouchApp | |
from kivy.event import EventDispatcher | |
from kivy.lang import Builder | |
from kivy.properties import ObjectProperty, ListProperty, StringProperty, \ | |
NumericProperty, Clock, partial | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.textinput import TextInput | |
import os | |
import subprocess | |
import threading |
""" | |
Turn a piano MIDI file into a basic 3D animated piano video. | |
See the result here: | |
I am leaving it as a script because it is not tested on enough MIDI files yet. | |
Zulko 2014 | |
This script is released under a Public Domain (Creative Commons 0) licence. |
# License: CC0, do what you want. | |
from kivy.app import App | |
from kivy.properties import NumericProperty | |
from kivy.uix.screenmanager import ScreenManager, Screen | |
from kivy.lang import Builder | |
Builder.load_string(''' | |
#:import random random.random | |
#:import SlideTransition kivy.uix.screenmanager.SlideTransition |
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
// = Requirements: freetype 2.5, libpng, libicu, libz, libzip2 | |
// = How to compile: | |
// % export CXXFLAGS=`pkg-config --cflags freetype2 libpng` | |
// % export LDFLAGS=`pkg-config --libs freetype2 libpng` | |
// % clang++ -o clfontpng -static $(CXXFLAGS) clfontpng.cc $(LDFLAGS) \ | |
// -licuuc -lz -lbz2 | |
#include <cassert> | |
#include <cctype> | |
#include <iostream> | |
#include <memory> |