Skip to content

Instantly share code, notes, and snippets.

View maralcbr's full-sized avatar

Marcelo Alcantara maralcbr

View GitHub Profile
@jlia0
jlia0 / agent loop
Last active November 3, 2025 13:01
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@rvillars
rvillars / README.md
Last active February 25, 2020 09:26
[Angular Translate Bunlde] Spring bundle based translations (i18n) for AngularJS applications with angular-translate

angular-translate with Spring bundles

Synopsis

AngularJS itself doesn't provide any features to translate the texts of your application to different languages and switching the language right on the page. Fornutalty there is now another open-source project called angular-translate that implements the needed functionalities.

AnularJS proposes a technologiy where as much as possible application behevior is exeuted on the client (the browser). So it makes sense to hold translated texts clientside and enrich the static templates with the transalted texts there.

Spring message bundles in the opposite are a collection of serverside key=value files that hold the translated texts each for one language. A well known and widly used pattern.

@corkupine
corkupine / userdatacaching.coffee
Created August 24, 2012 22:04
Fixed caching UserDataService
mod = angular.module('myApp.services', ['ngResource']);
mod.factory('UserData', ($resource,$location) ->
return $resource('http://' + $location.host() + '/Services/userinfo')
)
.factory('UserDataStore', ($resource, $location, UserData, $q, $rootScope) ->
GetUserDataFromXhr = () ->
deferred = $q.defer()
UserData.get((userdata) ->
deferred.resolve userdata.userInfo