I hereby claim:
- I am karlbright on github.
- I am karlbright (https://keybase.io/karlbright) on keybase.
- I have a public key whose fingerprint is E2A8 0CB7 E09A B2ED BAA4 6A6D D810 BD37 4C0B 6410
To claim this, I am signing this object:
use reqwest::{self, Error}; | |
pub fn get_gettorrent_data_for_url(url: &String) -> Result<String, Error> { | |
let body = reqwest::get(url)?.text()?; | |
Ok(body) | |
} |
solve :: [Int] -> [Int] | |
solve (s:t:a:b:m:_:rest) = [as, os] | |
where as = length $ filter (\x -> s <= x && x <= t) $ map (\x -> x + a) $ take m rest | |
os = length $ filter (\x -> s <= x && x <= t) $ map (\x -> x + b) $ drop m rest | |
main = interact $ unlines . map show . solve . map read . words |
import React from 'react' | |
import classnames from 'classnames' | |
import Input from './input' | |
import ColorPicker from './color_picker' | |
import FieldLabel from './field_label' | |
import ImageGrid from './image_grid' | |
import ImageField from './image_field' | |
import Divider from './divider' | |
import LargeButton from './large_button' | |
import camelcase from 'camelcase' |
var film = [ | |
[ | |
"On the Waterfront","1954", | |
[ | |
[40.734059,-74.029192,"Hoboken Railway Station, Hoboken, New Jersey"], | |
[40.7424391,-74.033583,"Our Lady Of Grace Church - 400 Willow Avenue, Hoboken, New Jersey"] | |
] | |
] | |
]; |
var path = require('path') | |
var babel = require('babel-loader') | |
var css = require('css-loader') | |
module.exports = function (source, map) { | |
switch (path.extname(this.resourcePath)) { | |
case '.js': return babel.apply(this, arguments) | |
case '.css': return css.apply(this, arguments) | |
default: return source | |
} |
var fs = require('fs') | |
var path = require('path') | |
var subtitlesParser = require('subtitles-parser') | |
var childProcess = require('child_process') | |
var moment = require('moment') | |
var mkdirp = require('mkdirp') | |
var debug = require('debug')('gilmarkgifs') | |
function generateGifForEachSubtitle (filePath) { | |
var identifier = getSeasonEpisodeIdentifierFromFilePath(filePath) |
I hereby claim:
To claim this, I am signing this object:
# A better prefix | |
unbind-key C-b | |
set -g prefix 'C-a' | |
bind-key 'C-a' send-prefix | |
# Use reattach-to-user-namespace to fix clipboard issues | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set-environment -g TMUX_COMMAND tmux |
/*var userChoice = prompt("Do you choose rock, paper or scissors?"); | |
var computerChoice = Math.random(); | |
if (computerChoice < 0.34) { | |
computerChoice = "rock"; | |
} else if(computerChoice <= 0.67) { | |
computerChoice = "paper"; | |
} else { | |
computerChoice = "scissors"; | |
} console.log("Computer: " + computerChoice);*/ |
import API from 'api' | |
import { replacePath} from 'redux-simple-router' | |
export const AUTHENTICATE = 'AUTHENTICATE' | |
export const AUTHENTICATE_SUCCESS = 'AUTHENTICATE_SUCCESS' | |
export const AUTHENTICATE_FAILURE = 'AUTHENTICATE_FAILURE' | |
export const VERIFYING_TOKEN = 'VERIFYING_TOKEN' | |
export const VERIFY_TOKEN_FAILURE = 'VERIFY_TOKEN_FAILURE' | |
export const VERIFY_TOKEN_SUCCESS = 'VERIFY_TOKEN_SUCCESS' |