This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
object ApiAsyncDispatcher extends RestCommons with RestHelper { | |
serve { | |
case "api" :: "async" :: "all" :: Nil Get req => { | |
User.currentUser match { | |
case Full(user) => async { | |
reply => { | |
AsyncRestListener ! RequestUpdate(RequestId(user, GroupPost, now), reply) | |
} | |
} | |
case _ => async { |
This file contains hidden or 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.liftweb.common._ | |
import net.liftweb.http.LiftRules._ | |
import net.liftweb.http.rest.RestHelper | |
import net.liftweb.http.{S, JsonResponse, LiftResponse, Req} | |
import net.liftweb.json.JsonDSL._ | |
import scala.concurrent.duration.Duration | |
object RateLimit { | |
This file contains hidden or 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 org.jz.s2ue | |
import org.specs2.mutable.Specification | |
class SkipSpec extends Specification { | |
skipAllUnless(isServerStarted && isDbAvailable) | |
"This test should not start" >> { | |
ok |
This file contains hidden or 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
(require 'jabber) | |
(setq jabber-account-list | |
'(("[email protected]" | |
(:network-server . "talk.google.com") | |
(:connection-type . ssl) | |
(:port . 5223) | |
(:password . "xxxxxxxxxxxxxxxxcipa")))) | |
(setq |
This file contains hidden or 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 file contains hidden or 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
#!/bin/bash | |
######################################################################################################################### | |
# MIT License | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | |
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains hidden or 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
object MyProject { | |
val projectSettings = inConfig(Test)( | |
testOptions += Tests.Setup { _ => | |
// add your initialization code here eg.: | |
(runMain in Compile in OtherSubproject).toTask(" b.c.d.CustomMainFunction args").value | |
} | |
testOptions += Tests.Cleanup { _ => | |
// add your clean up code here | |
} |
This file contains hidden or 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
SBT_OPTS=’ \ | |
-Xmx4G \ | |
-XX:+UseConcMarkSweepGC \ | |
-XX:+CMSClassUnloadingEnabled \ | |
-Xss2M -Duser.timezone=GMT \ | |
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005' |
This file contains hidden or 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
-J-Xmx4G | |
-J-XX:+UseConcMarkSweepGC | |
-J-XX:+CMSClassUnloadingEnabled | |
-J-Xss2M -Duser.timezone=GMT | |
-jvm-debug 5008 |
OlderNewer