Skip to content

Instantly share code, notes, and snippets.

View sudhirvkumar's full-sized avatar

Sudhir Kumar sudhirvkumar

View GitHub Profile
@sudhirvkumar
sudhirvkumar / gen.js
Created August 12, 2017 18:03
tryHalogen bytton generated code
This file has been truncated, but you can view the full file.
var console = {
log: function(s) {
var text = document.createTextNode(s);
var div = document.createElement("div");
div.appendChild(text);
var cons = document.getElementById("console");
cons && cons.appendChild(div);
}
@sudhirvkumar
sudhirvkumar / index.js
Last active August 12, 2017 18:08
Halogen Backend
var myconsole = console;
$.ajaxSetup({
dataType: 'text'
});
(function($) {
$.QueryString = (function(a) {
if (a == "") return {};
var b = {};
genFutureTime :: UTCTime -> Gen UTCTime
genFutureTime (UTCTime utctDay _utctDayTime) = do
UTCTime
<$> (ModifiedJulianDay <$> ((toModifiedJulianDay utctDay) +) <$> arbitrary)
<*> (fromRational . toRational <$> choose (0::Double, 86400))
{-| This script builds any version of the Elm Platform from source.
Before you use it, make sure you have the Haskell Platform with a recent
version of cabal.
To install a released version of Elm, you will run something like this:
runhaskell BuildFromSource.hs 0.16
Before you do that, in some directory of your choosing, add
wherever/Elm-Platform/0.16/.cabal-sandbox/bin to your PATH.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################
# #
# Script to download entire animorphs series #
# #
# Usage: python animorphs-downloader.py --help #
# #
#################################################

Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.