This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sete Atitudes para Hackear a Indústria de Software | |
By Klaus Wuestefeld | |
1) Torne-se excelente. | |
Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
anos numa faculdade ouvindo um professor falar sobre software q vc | |
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io._ | |
abstract class Command[IN, OUT] extends Serializable { def executeOn(system: IN): OUT } | |
class Prevayler[SYSTEM](private val storageFile:File) { | |
private var _system: SYSTEM = _ | |
private var _journal: ObjectOutputStream = _ | |
def restoreState(initialState: SYSTEM): SYSTEM = { | |
var tempFile: File = new File(storageFile.getAbsolutePath + ".tmp") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.softsimples.social.persistence | |
import scala.collection.JavaConverters._ | |
import com.basho.riak.client.{IRiakClient, RiakFactory} | |
import com.basho.riak.client.bucket.Bucket | |
class DBWrapper(private val riakClient:IRiakClient) { | |
def createHashWrapperFor( bucketName:String ): HashWrapper = { | |
HashWrapper.buildTableWrapper( buildBucket( bucketName ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.softsimples.social.persistence | |
import scala.collection.JavaConverters._ | |
import com.basho.riak.client.bucket.Bucket | |
import org.json.JSONObject | |
class HashWrapper(private var bucket:Bucket) { | |
def name():String = bucket.getName | |
def keys(): Iterator[String] = bucket.keys().iterator.asScala | |
def store(key:String, value:String): String = { | |
bucket.store[String](key, value).execute() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.softsimples.persistence | |
import mongodb.DataWrapperMongoDB | |
import org.specs2.mutable._ | |
import org.junit.runner._ | |
import org.specs2.runner._ | |
@RunWith(classOf[JUnitRunner]) | |
class DataWrapperMongoDBSpec extends Specification { | |
"Para executar persistencia com mongodb" should { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root database processes json template result| | |
root := Mongo default. | |
root open. | |
database := root databaseNamed: 'lean_namagement'. | |
processes := database addCollection: 'processes'. | |
json := Dictionary new. | |
json at: #name put: 'agnaldo'. | |
processes add: json. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.softsimples.social.twitter | |
import org.scribe.model.{Response, Token} | |
import com.softsimples.social.social.json.Json | |
import scala.collection.mutable.MutableList | |
import com.softsimples.social.social.oauth.OAuthWrapper | |
import scala.math.ceil | |
object CollectTwitterFriends { | |
val NUMBER_OF_USERS_PER_PAGE = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.softsimples.social.twitter | |
import com.softsimples.social.social.json.Json | |
import scala.collection.mutable.MutableList | |
import org.scribe.model.{Token, Response} | |
import com.softsimples.social.social.oauth.OAuthWrapper | |
class RetrieveTimeLine(val wrapper:OAuthWrapper, basePath:String, accessToken:Token) { | |
def userTimeLine(): List[Map[String, Any]] = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Todos os dias venho lidando com programadores que arrumam desculpas para não realizar um trabalho excelente. | |
As desculpas geralmente são: chefe não deixa, tenho que entregar logo, isso é assim mesmo ou eu não ganho para isso! | |
Pois lhes digo que não é assim não. | |
A seis meses resolvi por a prova todas as técnicas contidas no material que vou passar e tive resultados fantásticos para mim e minha equipe. | |
Então Minha contribuição para esse assunto são estes 4 livros |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var html_canvas = function (spec) { | |
var html = spec.html || ""; | |
var created_object = {}; | |
//public methods | |
created_object.render = function(component) { | |
component.renderOn(this); | |
return this; | |
}; |
OlderNewer