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
// constants/actions.js | |
export default const Actions = {}; | |
Actions.SomeAction = "SomeAction"; | |
Actions.AnotherAction = "AnotherAction"; | |
Actions.ThirdAction = "ThirdAction"; | |
// in actions/some_action.js |
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
function findGreatestPalindromeOfProduct(base) { | |
var res = { | |
factor1: undefined, | |
factor2: undefined, | |
palindrome: undefined, | |
}; | |
const min = Math.pow(10, base-1) + 1; | |
const max = Math.pow(10, base) - 1; |
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
// ... | |
Class.prototype["main()V"] = (function() { | |
var model$jsid$23613 = new $.g.Backbone.Model(); | |
model$jsid$23613.set("prop", "value"); | |
var buttons$jsid$23614 = $.g.$("button").add($.g.$("a.btn")); | |
buttons$jsid$23614.text("BUTTON"); | |
$.g.$("#NextButton").trigger("click"); | |
var siblings$jsid$23615 = $.g.$("#SomeElement").siblings(); |
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 kastigar.mongodb | |
import java.io._ | |
import net.liftweb._ | |
import common._ | |
import mongodb._ | |
import mongodb.record._ | |
import json.JsonAST.JObject |
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 kastigar | |
package snippet | |
import net.liftweb._ | |
import http._ | |
import common._ | |
import scala.xml._ | |
object L10n extends DispatchSnippet { | |
def dispatch: DispatchIt = { |
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 kastigar | |
package snippet | |
import net.liftweb._ | |
import http._ | |
import common._ | |
import sitemap._ | |
import scala.xml._ | |
object Href extends DispatchSnippet { |
NewerOlder