Skip to content

Instantly share code, notes, and snippets.

View gkossakowski's full-sized avatar
🎯
Focusing

Grzegorz Kossakowski gkossakowski

🎯
Focusing
View GitHub Profile
@gkossakowski
gkossakowski / README.txt
Created February 11, 2014 18:04
How to build sbt on top of Scala 2.11.0-M8
1. Run `publish-local` for sbinary from 5af79a0f833d2f0ccf8cc791c2f15f984fb80cc8 (latest master) with sbinary.patch applied.
2. Got to sbt checkout of 0.13 branch (4ab8074753695665300b692a4fee26635b1ed118) and apply sbt.patch
3. In sbt console `++ 2.11.0-M8`; compile
[repositories]
local
remote-repos: http://localhost:8081/artifactory/remote-repos/
remote-repos-ivy: http://localhost:8081/artifactory/remote-repos-ivy/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
# maven-central
# sonatype-snapshots: https://oss.sonatype.org/content/repositories/snapshots
# sonatype-releases: https://oss.sonatype.org/content/repositories/releases
# java-annoying-cla-shtuff: http://download.java.net/maven/2/
# typesafe-releases: http://typesafe.artifactoryonline.com/typesafe/releases
# typesafe-ivy-releases: http://typesafe.artifactoryonline.com/typesafe/ivy-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
[info] --== Building tortoise ==--
[info] Resolving: https://github.com/NetLogo/Tortoise.git#c0b92fd5500946ee81bb4218068698fe2b62d4bf in directory: ./target-0.8.0/project-builds/tortoise-f6e3461402cc7350ea86ba6fd87be1e2ba02ff48
[info] Fetching https://github.com/NetLogo/Tortoise.git
[info] into /Users/grek/scala/community-builds/target-0.8.0/clones/acb9ca061501f3080d5a5e4d2c2c10fe80b6625c
[info] Took: 00h 00m 01.1s
[info] Fetching /Users/grek/scala/community-builds/target-0.8.0/clones/acb9ca061501f3080d5a5e4d2c2c10fe80b6625c
[info] into /Users/grek/scala/community-builds/target-0.8.0/project-builds/tortoise-f6e3461402cc7350ea86ba6fd87be1e2ba02ff48
[info] Took: 00h 00m 00.0s
[info] Removing .dbuild.ivy.quiet.sbt
[info] Removing .dbuild/
def grouped[T](xs: Seq[T], n: Int): Iterator[Seq[T]] = {
val (segment, rest) = xs.splitAt(n)
Iterator(segment) ++ (if (rest.isEmpty) Iterator.empty else grouped(rest, n))
}
Greks-MBP:uber-build grek (test/new-zinc-script2)$ git diff
diff --git a/config/nightly-4.0.x-juno-2.11.conf b/config/nightly-4.0.x-juno-2.11.conf
index 27de8cd..f115399 100644
--- a/config/nightly-4.0.x-juno-2.11.conf
+++ b/config/nightly-4.0.x-juno-2.11.conf
@@ -37,12 +37,12 @@ BUILD_TYPE=dev
##### Scala information #####
SCALA_GIT_REPO=git://github.com/scala/scala
# The version of Scala to use
-SCALA_VERSION=2.11.0-SNAPSHOT
@gkossakowski
gkossakowski / sbteclipse-settings.patch
Last active August 29, 2015 14:03
Patch needed to generate proper Eclipse files for sbt project itself
diff --git a/project/Sbt.scala b/project/Sbt.scala
index 4e660f4..8007c3b 100644
--- a/project/Sbt.scala
+++ b/project/Sbt.scala
@@ -8,6 +8,8 @@ import Common._
import Licensed._
import Scope.ThisScope
import LaunchProguard.{ proguard, Proguard }
+import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys
+import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseCreateSrc
@gkossakowski
gkossakowski / fetchTweets.js
Last active August 29, 2015 14:05
Asynchronous fetching of tweets from Twitter
function fetchTweets(username, callback) {
jQuery.ajax({
url: "http://api.twitter.com/1/
statuses/user_timeline.json/",
type: "GET",
dataType: "jsonp",
data: {
screen_name : username,
include_rts : true,
count : 5,
### Keybase proof
I hereby claim:
* I am gkossakowski on github.
* I am grek (https://keybase.io/grek) on keybase.
* I have a public key whose fingerprint is F784 54E6 6DA3 D66C 89D2 C01E 287A 9033 977D BF9C
To claim this, I am signing this object:
[svn-remote "svn"]
url = https://svn.eu.apache.org/repos/asf
fetch = cocoon/trunk:refs/remotes/trunk
branches = cocoon/branches/*:refs/remotes/*
tags = cocoon/tags/*:refs/remotes/tags/*
rewriteRoot = https://svn.eu.apache.org/repos/asf/cocoon
grek@linux-p3yg:~/asf/git/infrastructure/apache-git-mirrors/bin> git --version
git version 1.6.1.3
grek@linux-p3yg:~/asf/git/infrastructure/apache-git-mirrors/bin> ls -l
razem 40
-rwxr-xr-x 1 grek users 773 mar 7 16:47 create-repo.sh
-rwxr-xr-x 1 grek users 3219 mar 7 16:50 email-update.sh
-rwxr-xr-x 1 grek users 3219 mar 7 16:50 email-update.sh.orig
-rwxr-xr-x 1 grek users 2086 mar 7 16:47 move-svn-project.sh
-rwxr-xr-x 1 grek users 1464 mar 7 16:47 update-authors.sh
-rwxr-xr-x 1 grek users 156 mar 6 16:16 update-daily.sh