Skip to content

Instantly share code, notes, and snippets.

View akshayaurora's full-sized avatar
🌴
Looking for a change

Akshay Arora akshayaurora

🌴
Looking for a change
View GitHub Profile
>>> from pyobjus import autoclass
>>> from pyobjus.dylib_manager import load_framework, INCLUDE
>>> load_framework(INCLUDE.AppKit)
>>> nscreen = autoclass('NSScreen')
>>> screen_count = int(nscreen.screens().count())
>>> for scr in range(screen_count):
... screen = nscreen.screens().objectAtIndex_(0)
... print screen.frame.size.width, screen.frame.size.height
...
1680.0 1050.0
This file has been truncated, but you can view the full file.
./toolchain.py build openssl kivy pil
Want to build ['openssl', 'kivy', 'pil']
Loaded recipe openssl (depends of [], optional are [])
Loaded recipe kivy (depends of ['python', 'sdl2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'ios'], optional are [])
Loaded recipe pil (depends of ['hostpython', 'host_setuptools', 'pkgresources', 'freetype', 'libjpeg', 'python', 'ios'], optional are [])
Loaded recipe python (depends of ['hostpython', 'libffi'], optional are ['openssl'])
Loaded recipe sdl2 (depends of [], optional are [])
Loaded recipe sdl2_image (depends of ['sdl2'], optional are [])
Loaded recipe sdl2_mixer (depends of ['sdl2'], optional are [])
Loaded recipe sdl2_ttf (depends of ['sdl2', 'freetype'], optional are [])

Checklist for PyCon India 2017

A list of suggestions to improve PyCon India. To be used as a checklist for next year.

Disclaimer: All things mentioned is this post, are the opinions/suggestions/views of the author, and in no way depict/endorse the views of any group/community.

Tshirts

  • Make 'Tshirt size' a mandatory field in the explara form. Also mention that tshirt sizes won't be changed later, for any reason whatsoever.
  • Request all speakers/sponsors for their respective tshirt sizes beforehand on mail.
  • Make 3 to 4 queues for Tshirt distribution. DONOT make queues based on names; that approach doesn't work with Tshirts. Each queue should be entirely independent, and volunteers will have a complete list of names.
from kivy.app import App
from kivy.factory import Factory
from pyobjus import autoclass
from pyobjus.dylib_manager import load_framework
from plyer.facades import UniqueID
#load_framework('/System/Library/Frameworks/UIKit.framework')
UIDevice = autoclass('UIDevice')
NSProcessInfo = autoclass('NSProcessInfo')
processInfo = NSProcessInfo.processInfo()
class RavenApp(App):
# -*- coding: utf-8 -*-
import kivy
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.lang import Builder
from bidi.algorithm import get_display
import arabic_reshaper
Builder.load_string(
'''