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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Jurassic; | |
| using System.Reflection; | |
| using System.Resources; | |
| using System.IO; | |
| namespace PE.Helpers |
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 strict" | |
| angular.module("$strap.directives").factory("$modal", ["$rootScope", "$compile", "$http", "$timeout", "$q", "$templateCache", "$strapConfig", ($rootScope, $compile, $http, $timeout, $q, $templateCache, $strapConfig) -> | |
| ModalFactory = ModalFactory = (config) -> | |
| Modal = (config) -> | |
| options = angular.extend( | |
| show: true | |
| , $strapConfig.modal, config) | |
| scope = (if options.scope then options.scope else $rootScope.$new()) | |
| templateUrl = options.template | |
| $q.when($templateCache.get(templateUrl) or $http.get(templateUrl, |
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
| const p = require \prelude-ls | |
| const safe = (a, b, c) --> if c? then c |> p.filter (?) |> a b | |
| module.exports = | |
| each : safe p.each | |
| map : safe p.map | |
| compact : safe p.compact | |
| filter : safe p.filter | |
| reject : safe p.reject |
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
| define([], function() { | |
| require=(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({"prelude-ls":[function(require,module,exports){ | |
| module.exports=require('bcmc1g'); | |
| },{}],"bcmc1g":[function(require,module,exports){ | |
| // Generated by LiveScript 1.2.0 | |
| var Func, List, Obj, Str, Num, id, isType, replicate, prelude, toString$ = {}.toString; | |
| Func = require('./Func.js'); | |
| List = require('./List.js'); | |
| Obj = require('./Obj.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
| module Http(get,post) where | |
| import Network.Socket | |
| --import Network.HTTP | |
| import Network.HTTP.Conduit | |
| import Network.HTTP.Types.Method | |
| import Network.HTTP.Types.Header | |
| --import Control.Monad | |
| --import Control.Applicative | |
| import qualified Data.ByteString.Lazy.Char8 as C |
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
| %span.required.angle | |
| %input |
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
| %span.required | |
| %input |
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 indentToBraces(input){ | |
| var p = require("prelude-ls"); //http://preludels.com/ | |
| var lines, i, idx, j, braces, bracesString; | |
| if (input != null) { | |
| lines = p.map(function(it){ | |
| var m; | |
| m = it.match(/^\s+/); | |
| return { | |
| i: m != null ? m[0].length : 0, | |
| c: it |
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
| const p = require \./reactive.js | |
| ###### | |
| # Benefits: | |
| # Do not care about when it will be executed | |
| # You can return simple result or promise of result | |
| ###### | |
| #Simple example: |
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
| var p = require ('reactive.js') | |
| /* | |
| Benefits: | |
| Do not care about when it will be executed | |
| You can return simple result or promise of result | |
| */ | |
| //Simple example: |
OlderNewer