Skip to content

Instantly share code, notes, and snippets.

View gitconfig
[push]
default = simple
[color]
ui = true
[color "branch"]
current = yellow ul
local = cyan bold
remote = magenta
View zip.scala
// zip3 Lists
object ZipUtils {
def zip3[A, B, C] (xs: List[A], ys: List[B], zs: List[C]) : List[(A, B, C)] = {
def zip3_aux(xs: List[A], ys: List[B], zs: List[C],
acc: List[(A, B, C)]) : List[(A, B, C)] = (xs, ys, zs) match {
case (xh :: xt, yh :: yt, zh :: zt) => zip3_aux (xt, yt, zt, (xh, yh, zh) :: acc )
case _ => acc.reverse
}
zip3_aux(xs, ys, zs, Nil)
}
View StreamExamples.scala
package org.examples
object StreamExamples {
// group List(1,1,2,2,2,3,4,4) =>
// List(List(1,1), List(2,2,2), List(3), List(4,4))
def group[A](s: Stream[A]): Stream[List[A]] =
s match {
case Stream() => Stream.empty
case hd #:: tl =>
View gist:5974
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# unmerged: README
# modified: README
# unmerged: app/controllers/application.rb
# modified: app/controllers/application.rb
# unmerged: config/boot.rb
# modified: config/boot.rb
# unmerged: config/database.yml
View profile.boot
(require 'boot.repl)
(swap! boot.repl/*default-dependencies* conj
'[refactor-nrepl "2.0.0-SNAPSHOT"]
'[org.clojure/tools.nrepl "0.2.12"]
'[cider/cider-nrepl "0.11.0-SNAPSHOT"])
(swap! boot.repl/*default-middleware*
conj 'cider.nrepl/cider-middleware)
View build.boot
(set-env!
:source-paths #{"src/cljs"}
:resource-paths #{"resources/public"}
:dependencies '[[org.clojure/clojure "1.8.0" :scope "test"]
[boot/core "2.5.1"]
[adzerk/boot-cljs "1.7.228-1" :scope "test"]
[adzerk/boot-cljs-repl "0.3.0" :scope "test"]
[com.cemerick/piggieback "0.2.1" :scope "test"]
[weasel "0.7.0" :scope "test"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]
@tabrez
tabrez / KC.txt
Created Nov 24, 2016
Keep Construct Last CC Phase
View KC.txt
Our basic job:
Mentally draw a straight line from entrance to the opposite side through boss/centre of the room: two Projections spawn at two statues on each side of this line at the start of each boss phase(100%, 66%, 33%). We kill the first one fast, let the second one reach us and then kill the second one fast. When the second projection dies, boss gets a breakbar and we cc him to go to green circle phase.
While killing projections after 33% hp(after we stack at a lit statue and dodge slam from KC):
1. boss has pink aura around his feet: stay out of it at all costs.
2. boss does rotating cone attack: all stack in one place for heals/buffs and try to dodge the rotating cones but make sure not to dodge into incoming cones
3. rocks fall onto the ground, try to dodge if multiple circles overlap under you, otherwise they don't do too much damage, you can also just step outside of them.
4. when we get time bomb, don't go too far away. Use defensive skills if you have any.
@tabrez
tabrez / Exercise_1.ipynb
Last active Dec 11, 2017
Exercise_1.ipynb
View Exercise_1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tabrez
tabrez / Answers_1.ipynb
Created Dec 11, 2017
My_solutions.ipynb
View Answers_1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View My_solutions.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.