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
// 99% done by @rauri rochford | |
// http://js1k.com/2012-love/demo/1071 | |
// i just rAF'd it. | |
// demo at http://bl.ocks.org/1823634 | |
e = [];// trails |
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
var tmp = require('tmp'); | |
var fs = require('fs'); | |
var exec = require("child_process").exec; | |
tmp.file({postfix: ".md"}, function(err, path, fd) { | |
fs.writeFile(path, "* One\n* Two", function(err) { | |
if(err) return; | |
exec('github-markup ' + path, function (err, stdout, stderr) { | |
console.log(stdout); | |
console.log(path); |
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
function mdRander() { | |
pandoc $1 | lynx -stdin -dump | |
} |
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
version: '2' | |
services: | |
# mysql | |
mysql: | |
image: "mysql:5.7.10" | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: "admin" |
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
// semantic-ui-form.js | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Form, Input } from 'semantic-ui-react'; | |
export default function semanticFormField ({ input, type, label, placeholder, meta: { touched, error, warning }, as: As = Input, ...props }) { | |
function handleChange (e, { value }) { | |
return input.onChange(value); | |
} |
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
FROM debian:jessie | |
ENV USER=boatswain USER_ID=1000 USER_GID=1000 | |
# now creating user | |
RUN groupadd --gid "${USER_GID}" "${USER}" && \ | |
useradd \ | |
--uid ${USER_ID} \ | |
--gid ${USER_GID} \ | |
--create-home \ |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace PawnLib.Utils | |
{ | |
public interface IStore | |
{ | |
} |
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
#!/bin/bash | |
scrot /tmp/screenshot.png | |
convert /tmp/screenshot.png -blur 0x3 /tmp/screenshotblur.png | |
i3lock -i /tmp/screenshotblur.png |
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
console.log( | |
[ | |
(( ! + [] + [] + ![] + [] + [] + ![] + ! + [] + [] + ![] + [] + [] + ![] + [] + ![] + [] + ![] + ![] + | |
true + [] + true + [] + [] + (true) + true + | |
![] + ![] + ![] + ![] + ! + [] + ![] + ![] + | |
![] + ![] + 1 | |
)).length, | |
(( ! + [] + [] + ![] + [] + [] + ![] + ! + [] + [] + ![] + [] + [] + ![] + [] + ![] + [] + ![] + ![] + | |
true + [] + true + [] + [] + (true) + true + | |
![] + ![] + ![] + ![] + ! + [] + ![] + ![] + ![] + [] + (undefined - 6) |
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 {create, env, Maybe} from 'sanctuary'; | |
const S = create({ | |
checkTypes: true, | |
env | |
}); | |
// PART - I | |
// const first_arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]; | |
// const first_elem = S.head(first_arr); |