Git Product home page Git Product logo

pymedium's Introduction

Hi there

Hi, I'm Engine Bai. Developer, Athlete, Learner.

abhisheknaiidu

Languages and Tools:

  • With 5 years' experiences of Android app development. Interested in mobile full stack.
  • Start developing in Flutter and learn Frontend / Backend.
  • Read more about Investment, Finance Independence, Learning How to Learn and Leadership & Management.
  • Write Personal Technical Blog to share my knowledge.
object EngineBai {
    val learning: Learning by inject()
    val projects: Project by inject()

    private val experiences = Experience()

    fun startMyJourney() {
        while (live) {
            try {
                learning.keep(efforts, time)
                assets += investment(money)
            } catch (e: Exception) {
                correctMyself(e)
            }

            // TODO:
            travel(listOf(countries))
        }
    }
}

pymedium's People

Contributors

enginebai avatar florents-tselai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pymedium's Issues

Fail to install PyMedium on Windows

When I tried to use pip to install PyMedium, I got the error of:

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\JIAHAO~1\AppData\Local\Temp\pip-install-b7ntnfmk\PyMedium\setup.py", line 12, in
long_description=open('README', 'r').read(),
File "c:\users\jiahaocai\appdata\local\programs\python\python37\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 2382: character maps to

I think the problem could be there is some Chinese in the README file. Hope you could help check this problem and fix it.
Thanks so much!

Convert gist to code block

2016-12-13 11 37 51

to

private double convertTouchEventPointToAngle(float xPos, float yPos) {
	// transform touch coordinate into component coordinate
	float x = xPos - mTranslateX;
	float y = yPos - mTranslateY;

	x = (mClockwise) ? x : -x;
	double angle = Math.toDegrees(Math.atan2(y, x) + (Math.PI / 2));
	angle = (angle < 0) ? (angle + 360) : angle;
	return angle;
}

The API response can't get the whole post URL

{
    "26594f13f9f7": {
        "acceptedAt": 0,
        "allowResponses": true,
        "approvedHomeCollectionId": "275e26e7c1b2",
        "canonicalUrl": "",
        "content": {
            "postDisplay": {
                "coverless": true
            },
            "subtitle": "最近聊天機器人Bot這股趨勢才慢慢要崛起,之前做了一點觀察紀錄,這次進入實作階段,首先就直接使用Facebook Message Platform做為開始。"
        },
        "coverless": true,
        "createdAt": 1463114334145,
        "creatorId": "3301d32a6bba",
        "detectedLanguage": "zh-Hant",
        "displayAuthor": "",
        "experimentalCss": "",
        "firstPublishedAt": 1463362614400,
        "hasUnpublishedEdits": false,
        "homeCollectionId": "275e26e7c1b2",
        "id": "26594f13f9f7",
        "importedPublishedAt": 0,
        "importedUrl": "",
        "inResponseToMediaResourceId": "",
        "inResponseToPostId": "",
        "inResponseToRemovedAt": 0,
        "isApprovedTranslation": false,
        "isRequestToPubDisabled": false,
        "isSeries": false,
        "isSponsored": false,
        "isSubscriptionLocked": false,
        "isTitleSynthesized": true,
        "latestPublishedAt": 1464044751035,
        "latestPublishedVersion": "a9cd5e24bc87",
        "latestRev": 1003,
        "latestVersion": "a9cd5e24bc87",
        "license": 0,
        "mediumUrl": "",
        "migrationId": "",
        "newsletterId": "",
        "notifyFacebook": false,
        "notifyFollowers": true,
        "notifyTwitter": false,
        "previewContent": {
            "bodyModel": {
                "paragraphs": [
                    {
                        "alignment": 1,
                        "markups": [],
                        "name": "85d4",
                        "text": "用Python開發Facebook Bot",
                        "type": 3
                    },
                    {
                        "alignment": 1,
                        "markups": [
                            {
                                "anchorType": 0,
                                "end": 31,
                                "href": "https://medium.com/dualcores-studio/聊天機器人的產業觀察紀錄-cdd9d993d46b#.nlzbroahg",
                                "rel": "",
                                "start": 27,
                                "title": "",
                                "type": 3
                            },
                            {
                                "anchorType": 0,
                                "end": 73,
                                "href": "https://developers.facebook.com/docs/messenger-platform",
                                "rel": "",
                                "start": 48,
                                "title": "",
                                "type": 3
                            }
                        ],
                        "name": "65ce",
                        "text": "最近聊天機器人Bot這股趨勢才慢慢要崛起,之前做了一點觀察紀錄,這次進入實作階段,首先就直接使用Facebook Message Platform做為開始。",
                        "type": 1
                    },
                    {
                        "layout": 9,
                        "markups": [
                            {
                                "anchorType": 0,
                                "end": 46,
                                "href": "https://messengerplatform.fb.com",
                                "rel": "nofollow",
                                "start": 14,
                                "title": "",
                                "type": 3
                            }
                        ],
                        "metadata": {
                            "id": "1*FaXmJ1pHvSc55lwckZxKuQ.png",
                            "originalHeight": 698,
                            "originalWidth": 1278
                        },
                        "name": "af96",
                        "text": "",
                        "type": 4
                    }
                ],
                "sections": [
                    {
                        "startIndex": 0
                    }
                ]
            },
            "isFullContent": false
        },
        "responseHiddenOnParentPostAt": 0,
        "slug": "用python開發facebook-bot",
        "title": "用Python開發Facebook Bot",
        "translationSourceCreatorId": "",
        "translationSourcePostId": "",
        "type": "Post",
        "uniqueSlug": "用python開發facebook-bot-26594f13f9f7",
        "updatedAt": 1467813266572,
        "versionId": "a9cd5e24bc87",
        "virtuals": {
            "allowNotes": true,
            "imageCount": 11,
            "isBookmarked": false,
            "isLockedPreviewOnly": false,
            "links": {
                "entries": [
                    {
                        "alts": [
                            {
                                "type": 2,
                                "url": "medium://p/cdd9d993d46b"
                            },
                            {
                                "type": 3,
                                "url": "medium://p/cdd9d993d46b"
                            }
                        ],
                        "url": "https://medium.com/dualcores-studio/%E8%81%8A%E5%A4%A9%E6%A9%9F%E5%99%A8%E4%BA%BA%E7%9A%84%E7%94%A2%E6%A5%AD%E8%A7%80%E5%AF%9F%E7%B4%80%E9%8C%84-cdd9d993d46b#.nlzbroahg"
                    },
                    {
                        "alts": [
                            {
                                "type": 2,
                                "url": "medium://dualcores-studio"
                            },
                            {
                                "type": 3,
                                "url": "medium://dualcores-studio"
                            }
                        ],
                        "url": "http://dual-cores.com"
                    }
                ],
                "generatedAt": 1471975490664,
                "version": "0.3"
            },
            "metaDescription": "",
            "previewImage": {
                "backgroundSize": "",
                "filter": "",
                "height": 0,
                "imageId": "1*FaXmJ1pHvSc55lwckZxKuQ.png",
                "originalHeight": 698,
                "originalWidth": 1278,
                "strategy": "resample",
                "width": 0
            },
            "publishedInCount": 1,
            "readingTime": 2.349056603773585,
            "recommends": 32,
            "responsesCreatedCount": 3,
            "socialRecommendsCount": 0,
            "statusForCollection": "APPROVED",
            "subtitle": "最近聊天機器人Bot這股趨勢才慢慢要崛起,之前做了一點觀察紀錄,這次進入實作階段,首先就直接使用Facebook Message Platform做為開始。",
            "tags": [
                {
                    "metadata": {
                        "coverImage": {
                            "id": "1*wybYEzkMts0D1BloD1vH4A.png",
                            "originalHeight": 1244,
                            "originalWidth": 3000
                        },
                        "followerCount": 2509,
                        "postCount": 5078
                    },
                    "name": "Bots",
                    "postCount": 5078,
                    "slug": "bots",
                    "type": "Tag",
                    "virtuals": {
                        "isFollowing": false
                    }
                },
                {
                    "metadata": {
                        "coverImage": {
                            "id": "1*wybYEzkMts0D1BloD1vH4A.png",
                            "originalHeight": 1244,
                            "originalWidth": 3000
                        },
                        "followerCount": 165,
                        "postCount": 893
                    },
                    "name": "Facebook Messenger",
                    "postCount": 893,
                    "slug": "facebook-messenger",
                    "type": "Tag",
                    "virtuals": {
                        "isFollowing": false
                    }
                },
                {
                    "metadata": {
                        "coverImage": {
                            "id": "1*nAr_UQ1RcT-2mcfstPLocQ.jpeg",
                            "originalHeight": 750,
                            "originalWidth": 1061
                        },
                        "followerCount": 4668,
                        "postCount": 3793
                    },
                    "name": "Python",
                    "postCount": 3793,
                    "slug": "python",
                    "type": "Tag",
                    "virtuals": {
                        "isFollowing": false
                    }
                }
            ],
            "takeoverId": "",
            "totalClapCount": 0,
            "usersBySocialRecommends": [],
            "wordCount": 278
        },
        "visibility": 0,
        "vote": false,
        "webCanonicalUrl": ""
    }
}

Failed to import required modules in sdk

>>> from PyMedium.medium import Medium
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/enginebai/tmp/med/env/lib/python3.5/site-packages/PyMedium/medium.py", line 5, in <module>
    import requests
ImportError: No module named 'requests'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.