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
<html> | |
<head> | |
<style> | |
body { | |
width: 100vw; | |
height: 100vh; | |
} | |
</style> | |
</head> | |
<body> |
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
[ | |
{ | |
"name": "security_issue", | |
"triggers": [ | |
{ | |
"name": "IssueReported", | |
"type": "text", | |
"match": "#sec", | |
"channel_name": "", | |
"team_name": "" |
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
;; built on: https://gist.github.com/zdavkeos/1279865 | |
;; and ediff-util (GNU Emacs) | |
;; | |
;; diff-region-with-killring* - Diff the current region with the | |
;; region that was most recently killed (cut or copied). The | |
;; highlighted region is called Region.B during the ediff session. | |
;; Changes made to the highlighted region (Region.B) will be saved | |
;; when quitting the ediff session. This is designed to be similar to | |
;; the 'compare with clipboard' function in IntelliJ IDEA. | |
;; |
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
* This is a test (expand works here for me.) | |
** With no src blocks, highlighting will work just fine (expand works here for me.) | |
* But, with src blocks: (expand works here for me.) | |
** in a subtree (A) (expand doesn't work here for me.) | |
Test test test test. Test test test. (expand works here for me.) | |
*** in a subsubtree (B) (expand doesn't work here for me.) | |
#+header: :tangle yes (expand doesn't work here for me.) | |
#+begin_src emacs-lisp | |
(+ 1 1) | |
#+end_src |
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
// xsbt-web-plugin | |
resolvers += "Web plugin repo" at "http://siasia.github.com/maven2" | |
resolvers += "Jawsy.fi M2 releases" at "http://oss.jawsy.fi/maven2/releases" | |
libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" % (v+"-0.2.11")) | |
// sbt idea | |
resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" |
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 net.thunderklaus.GwtPlugin._ | |
name := "Scala Experiment Server" | |
scalaVersion := "2.9.1" | |
seq(gwtSettings: _*) | |
gwtVersion := "2.4.0" |
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
# DataHolder handles most Knockout binding situations for properties | |
# transparently. You can instantiate a DataHolder with a set of attributes | |
# that are turned into observable properties of the DataHolder. | |
# | |
# Attributes passed in that are functions are not wrapped in an observable. | |
# Additionally, all attributes whose names end in `Fn' are ensured to be | |
# wrapped in functions and set as is, without an observable. | |
# | |
# All attributes are passed through the preprocessAttribute function, which | |
# can be overridden in child classes. These can be used to do type |
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 { | |
package object openstudy { | |
def nameForStringField(fn:(String)=>Any) : String = { | |
S.fmapFunc(S.SFuncHolder(string => fn(string)))((name:String) => name) | |
} | |
def nameForFileUploadField(fn:(FileParamHolder)=>Any) : String = { | |
S.fmapFunc(S.BinFuncHolder(fph => if (fph.length > 0) fn(fph)))((name:String) => name) | |
} | |
def nameForSubmitButton(fn:()=>JsCmd) : String = { | |
S.fmapFunc(S.NFuncHolder(fn))((name:String) => name) |