Skip to content

Instantly share code, notes, and snippets.

View nskrypnik's full-sized avatar

Niko Skrypnik nskrypnik

View GitHub Profile
Niko Skrypnik:
Given six point below
(0, 0),
(0, 0.21875),
(0, 57.0),
(52.687045890688346, 0.21875),
(52.687045890688346, 57.0),(52.8104208873519, 57.4686170619435)
chatGPT:
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
open: true,
actions: {
handleMe() {
console.log('got it')
},
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
handleMe() {
alert('got it')
},
-- cythonize ['/Users/nskrypnik/kivy-ios/tools/cythonize.py', './kivy/core/text/text_sdlttf.pyx']
cythonize: ./kivy/core/text/text_sdlttf.pyx
Error compiling Cython file:
------------------------------------------------------------
...
if ext.lower() == 'ttf':
fontobject = TTF_OpenFont(fontname, int(self.options['font_size']))
# fallback to search a system font
building 'kivy.core.text.text_sdlttf' extension
creating build/temp.macosx-10.7-armv7-2.7/kivy/core/text
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch armv7 -pipe -no-cpp-precomp -miphoneos-version-min=6.1 -O3 -g -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -I/Users/nskrypnik/kivy-ios/build/include -I/Users/nskrypnik/kivy-ios/build/include/SDL -I/Users/nskrypnik/kivy-ios/build/include/freetype -I/Users/nskrypnik/kivy-ios/tmp/Python-2.7.1/Include -I/Users/nskrypnik/kivy-ios/tmp/Python-2.7.1 -c kivy/core/text/text_sdlttf.c -o build/temp.macosx-10.7-armv7-2.7/kivy/core/text/text_sdlttf.o -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
kivy/core/text/text_sdlttf.c:1:2: error: Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result
import win32com.client
import os
# Change to match your psd file
psdFile = r'E:\topestate\1main.psd'
exportPath = r'E:\topestate\main'
# Photoshop actually exposes several different COM interfaces,
# including one specifically for classes defining export options.
#!/bin/sh
# build-cymunk.sh
#
#
# Created by Niko Skrypnik on 11/14/13.
#
. $(dirname $0)/environment.sh
@nskrypnik
nskrypnik / gist:7484212
Created November 15, 2013 13:19
Patch for cythonize file to build cymunk properly
diff --git a/tools/cythonize.py b/tools/cythonize.py
index 2963624..a64585d 100755
--- a/tools/cythonize.py
+++ b/tools/cythonize.py
@@ -29,7 +29,7 @@ def do(fn):
# cythonize
subprocess.Popen([cython, fn], env=os.environ).communicate()
- if not package:
+ if not package or package == 'cymunk_python':
@nskrypnik
nskrypnik / gist:7450085
Created November 13, 2013 14:36
Error while kivy-ios compiling
./Parser/hostpgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
./Parser/hostpgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -fno-strict-aliasing -arch armv7 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -miphoneos-version-min=6.1 -O3 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/symtable.o Python/symtable.c
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -fno-strict-aliasing -arch armv7 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -miphoneos-version-min=6.1 -O3 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/ast.o Python/ast.c
/Applications/Xcode.app/
@nskrypnik
nskrypnik / gist:7321127
Created November 5, 2013 15:50
Error while trying to load .tga image
I/python (21813): Traceback (most recent call last):
I/python (21813): File "/home/niko/projects/kivyorigin/trackball/main.py", line 142, in <module>
I/python (21813): File "/home/niko/projects/android/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/app.py", line 705, in run
I/python (21813): File "/home/niko/projects/kivyorigin/trackball/main.py", line 139, in build
I/python (21813): File "/home/niko/projects/kivyorigin/trackball/main.py", line 33, in __init__
I/python (21813): File "/home/niko/projects/kivyorigin/trackball/main.py", line 56, in setup_scene
I/python (21813): File "/home/niko/projects/android/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/image/__init__.py", line 440, in __init__
I/python (21813): File "/home/niko/projects/android/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/image/__init__.py", line 628, in _set_filename
I/python (21813): File "/home/niko/projects/android