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
| <html> | |
| <body> | |
| <div id="react-root"></div> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-with-addons.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.js"></script> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.7.7/babel.min.js"></script> | |
| <script id="react-app" type="text/template"> | |
| const App = ({name}) => { |
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
| // F# FizzBuzz using Active Patterns | |
| let (|DivisibleBy|_|) by n = | |
| match n%by with | |
| | 0 -> Some DivisibleBy | |
| | _ -> None | |
| let fizzbuzz = function | |
| | DivisibleBy 3 & DivisibleBy 5 -> "FizzBuzz" | |
| | DivisibleBy 3 -> "Fizz" |
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
| import numpy as np | |
| import hashlib | |
| def create_block(parent_block, value, hashfunc): | |
| """ ------------------------------------------------ | |
| String -> Block -> (Block -> String) -> Block | |
| ------------------------------------------------ | |
| Produce a new block from a string value and a hash | |
| of its parent block. In this case, a block is also a string. | |
| """ |
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
| # Tests a git setup with a sumbodule that contains large files. | |
| # In particular, the submodule should be fetchable with `--depth 1`. | |
| mkdir git-large-submodule-test | |
| cd git-large-submodule-test/ | |
| mkdir repo-bare submodule-bare | |
| cd repo-bare/ | |
| git init --bare | |
| cd .. | |
| cd submodule-bare/ |
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 fs = require('fs'); | |
| function artifactOutput(imagePath) { | |
| return '\033]1338;url=artifact://' + imagePath + ';alt=' + imagePath + '\07\n'; | |
| } | |
| function base64Output(imagePath) { | |
| var encodedImage = fs.readFileSync(imagePath, {encoding: 'base64'}); | |
| return '\033]1337;File=name=' + imagePath + ';inline=1:' + encodedImage + '\07\n'; | |
| } |
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 CreatePlaces < ActiveRecord::Migration | |
| # Rails migration for GeoWorldMap db into postgresql db | |
| #(inspired by http://blog.inspired.no/populate-your-database-with-free-world-cities-countries-regions-in-2-minutes-using-a-rails-migration-273/ post) | |
| #extract files from GeoWorldMap.zip archive from here | |
| # http://www.geobytes.com/GeoWorldMap.zip | |
| # | |
| #and place them into #{Rails.root}/db/migrate/ | |
| ##the archive has 'cities.txt' file, rename it 'Cities.txt' | |
| #mv cities.txt Cities.txt |
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
| import Control.Arrow ((***)) | |
| import Control.Monad (replicateM_) | |
| import Control.Monad.IO.Class | |
| import Data.List (isPrefixOf) | |
| import Data.Time.Clock | |
| import DynFlags (defaultFatalMessager, defaultFlushOut, PkgConfRef(PkgConfFile)) | |
| import GHC | |
| import GHC.Paths (libdir) | |
| import System.FilePath (takeBaseName, splitExtension, addExtension) | |
| import Text.Printf |
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 takeSS(cloudinary_name, cloudinary_key, cloudinary_unsigned_preset, main_element){ | |
| main_element = main_element || document.body; | |
| const imageUrlToBase64 = (url) => fetch( | |
| `https://get-base64-image.rafaelverger.now.sh/?url=${encodeURIComponent(url)}` | |
| ).then(res => res.text()); | |
| const _takeSS = () => { | |
| const elementImages = [].slice.call( | |
| main_element.querySelectorAll('img'), 0 | |
| ).filter(img => /^http/.test(img.src)); |
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 CUDA on GPU 0... | |
| Make sure that your saved checkpoint was also trained with GPU. If it was trained with CPU use -gpuid -1 for sampling as well | |
| creating an lstm... | |
| missing seed text, using uniform probability over first character | |
| -------------------------- | |
| �y job is producing how people read out there. Our platform builds a core technology startup is established by hardest lifestal search and data structures and allowing us to be family on all shapes and shape some of the developers, including MacBook profiles, mongotiout and test achieved as the time to distribute the code. If you have any questions about all of our jobs page for more information to about us really among the latter to contribute to person because it's a very larger hands to do the intersection that lesss more varied or email me (http://blog.vittualsnownup.org/wiki/) – Full-Time, , Canada, Remote, Perl, POS, (or JavaScript (UI/UX)TEDY is a number of hiring software developers who are excited about technical hires to be quickly as th |
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
| #!/usr/bin/env runhaskell | |
| {-# LANGUAGE OverloadedStrings #-} | |
| import Turtle | |
| import Prelude hiding (FilePath) | |
| import qualified Data.Text as T | |
| import System.Environment (getArgs) | |
| usage = "Please specify module name you would like to build as first argument." |