View gist:1944bc1283507204140308708bd332b1
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
zsh: command not found: любая |
View gist:8d0e773a1a22e8f9d2d1f404b66fb1b3
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
No such command: fake_command | |
Commands: | |
build Build or rebuild services | |
config Validate and view the Compose file | |
create Create services | |
down Stop and remove containers, networks, images, and volumes | |
events Receive real time events from containers | |
exec Execute a command in a running container | |
help Get help on a command |
View gist:1166a43e448fd007c10dca3e813c0be2
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
No such command: dasd | |
Commands: | |
build Build or rebuild services | |
config Validate and view the Compose file | |
create Create services | |
down Stop and remove containers, networks, images, and volumes | |
events Receive real time events from containers | |
exec Execute a command in a running container | |
help Get help on a command |
View gist:a34e5db38736f0e825de64bbf1e060c6
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
вывод консоли |
View gist:1d0d0684627480c0e07a8109a6821929
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
вывод консоли |
View gist:beacbb252cd0b45d494b7cfcd798a9d4
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
123 |
View alet.txt
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
vectonium_avega |
View gist:dc8ba65c8e5b5367f879
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 reactivemongo.bson.{BSONHandler, BSONDateTime, Macros} | |
import org.joda.time.format.ISODateTimeFormat | |
import org.joda.time.{DateTime, DateTimeZone} | |
package object myApp { | |
DateTimeZone.setDefault(DateTimeZone.UTC) | |
implicit object BSONDateTimeHandler extends BSONHandler[BSONDateTime, DateTime] { | |
val fmt = ISODateTimeFormat.dateTime() | |
def read(time: BSONDateTime) = new DateTime(time.value) |
View YearOrderIncomeReport.scala
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
private def query( ): Future[ List[ JsObject ] ] = { | |
val group: Group = Group( BSONString( "$order.year" ) )( ("total", SumField( "value" )) ) | |
val pipeline: Seq[ PipelineOperator ] = Seq( group ) | |
val command: Future[ Stream[ BSONDocument ] ] = db.command( Aggregate( "opportunities", pipeline ) ) | |
command map { | |
c => | |
c.toList map { | |
d => | |
toJSON( d ).asInstanceOf[ JsObject ] | |
} |
View fuck_bem.js
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
[].slice.call(document.querySelectorAll('[class]')).map(function (node) { | |
return node.className | |
}).sort(function (a, b) { | |
return b.length - a.length | |
}).slice(0, 50).map(function (elem) { | |
console.log(elem); | |
return elem; | |
}); |
NewerOlder