Package letteravatar generates letter-avatars.
Package letteravatar generates letter-avatars.
Package cameron implements an avatar generator for Go.
Package identicon is an open source avatar generator inspired by GitHub avatars. IdentIcon uses a deterministic algorithm that generates an image (using Golang's stdlib image encoders) based on a text (Generally Usernames, Emails or just random strings), by hashing it and iterating over the bytes of the digest to pick whether to draw a point, pick a color or choose where to go next. IdentIcon's Generator enables the creation of customized figures: (NxN size, points density, custom color palette) as well as multiple exporting formats in case the developers want to generate their own images.
Package letteravatar generates letter-avatars.
Package letteravatar generates letter-avatars.
Package plavatar implements the core avatar generation functionality. It contains the Generator struct, which implements the library's main method: Generator.GenerateAvatar. Generator.GenerateAvatar is called in combination with a GeneratorFunction like Generator.Smiley (see the matching avatar_XXX.go file for details on the GeneratorFunction's implementations)
Package plavatar implements the core avatar generation functionality. It contains the Generator struct, which implements the library's main method: Generator.GenerateAvatar. Generator.GenerateAvatar is called in combination with a GeneratorFunction like Generator.Smiley (see the matching avatar_XXX.go file for details on the GeneratorFunction's implementations)
xig To fetch **instagram** user img, content, avatar data. install from github usage list To fetch recently img(12), avatar and content To fetch **ALL** images data (if user uploaded more, may slow) Print recently data Output format: To find some deleted content Some users turn to private account, using `-u` to login user account for fetch private data. (required setting environment variables in `IGUSER`, `IGPASS`, and cookies file will save as `cookies.gob`) by user * All images will try to fetch original size. * Private user need setting `IGUSER`, `IGPASS` and using `-u`. Cookies file will save as `cookies.gob` * Content's readable date is in `RFC3339` format. * instagram won't to ban ip, may CDN doesn't check. * `xig`'s code base are not pretty, I will make it pretty :) For crontab, every 1m to fetch For crontab, using `-d` for delay fetch.
Package avatargen generats an 300x300 px avatar based on a input string. The avatar is aways unique
Package letteravatar generates letter-avatars.
Package auth provides a complete user authentication system for Go web applications. Quick Start: Features: 1. Email/Password Authentication 2. OAuth Support 3. SAML Single Sign-On Customizable User Info You can override the GetInfo method to return custom user information: type MyDB struct { *auth.UserDB } type CustomUserInfo struct { UserID int64 `json:"userid"` Email string `json:"email"` Name string `json:"name"` AvatarURL string `json:"avatar_url"` } func (db *MyDB) GetInfo(tx auth.Tx, userid int64, newAccount bool) auth.UserInfo { // Query additional user data from your database var info CustomUserInfo err := tx.(*auth.UserTx).Tx.Get(&info, `SELECT userid, email, name, avatar_url FROM users WHERE userid = ?`, userid) if err != nil { panic(err) } return info } // Use your custom DB: authHandler := auth.New(&MyDB{auth.NewUserDB(db)}, settings) API Endpoints: POST /user/auth - Sign in with email/password: email=user@example.com&password=secret - Sign in with OAuth: method=facebook&token=oauth-token - Sign in with SAML: email=user@company.com&sso=1 POST /user/create - Create account: email=user@example.com&password=secret - Optional signin=0 to create without signing in GET /user/get - Get current user info - Returns 401 if not signed in POST /user/signout - Sign out current user POST /user/update - Update email: email=new@example.com - Update password: password=newpassword POST /user/oauth/add - Add OAuth method: method=facebook&token=oauth-token - Optional update_email=true to update email POST /user/oauth/remove - Remove OAuth method: method=facebook POST /user/forgotpassword - Request password reset: email=user@example.com POST /user/resetpassword - Reset password: token=reset-token&password=newpassword GET /user/saml/metadata - Get SAML service provider metadata POST /user/saml/acs - SAML assertion consumer service endpoint Database Schema: The package automatically creates these tables: - Users: Basic user info and credentials - Sessions: Active login sessions - OAuth: Linked OAuth accounts - PasswordResetTokens: Password reset tokens - AuthSettings: Configuration settings See schema.go for complete table definitions. Security Features: - Passwords hashed with bcrypt - Rate limiting on authentication attempts - CSRF protection - Secure session cookies - SQL injection protection via sqlx Example_saml shows how to register Saml providers and override the GetSamlIdentityProviderForUser method
Package letteravatar generates letter-avatars.
Package identicon is an open source avatar generator inspired by GitHub avatars. IdentIcon uses a deterministic algorithm that generates an image (using Golang's stdlib image encoders) based on a text (Generally Usernames, Emails or just random strings), by hashing it and iterating over the bytes of the digest to pick whether to draw a point, pick a color or choose where to go next. IdentIcon's Generator enables the creation of customized figures: (NxN size, points density, custom color palette) as well as multiple exporting formats in case the developers want to generate their own images.