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
| " All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by | |
| " the call to :runtime you can find below. If you wish to change any of those | |
| " settings, you should do it in this file (/etc/vim/vimrc), since debian.vim | |
| " will be overwritten everytime an upgrade of the vim packages is performed. | |
| " It is recommended to make changes after sourcing debian.vim since it alters | |
| " the value of the 'compatible' option. | |
| " This line should not be removed as it ensures that various options are | |
| " properly set to work with the Vim-related packages available in Debian. | |
| runtime! debian.vim |
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 ruby | |
| require 'rest_client' | |
| require 'cmis' | |
| require 'rika' | |
| #require 'pg' | |
| require 'java' | |
| require 'postgresql.jar' | |
| def description_tags(uuid, cur_number, provider, description, value, month, area, tags) |
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 System.Random | |
| import Rainbow | |
| import Data.Maybe (fromMaybe) | |
| import qualified Data.Map.Lazy as Map | |
| main :: IO () | |
| main = do | |
| roll <- getStdRandom (randomR (0,5)) | |
| mapM_ putColorText (replicate 4 roll) | |
| input <- getLine |
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> | |
| <h1>Hello!</h1> | |
| <p>Serving this from gist.github.com</p> | |
| </body> | |
| </html> |
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 Data.Time ( UTCTime(..) | |
| , fromGregorian | |
| , NominalDiffTime(..) | |
| , addUTCTime ) | |
| ticksToUtc :: Integer -> UTCTime | |
| ticksToUtc ticks = | |
| let start = UTCTime (fromGregorian 0001 01 01) 0 | |
| seconds = realToFrac (ticks `div` 10000000) :: NominalDiffTime | |
| in addUTCTime seconds start |
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
| {-# LANGUAGE StandaloneDeriving #-} | |
| {-# LANGUAGE GADTs #-} | |
| data D a where | |
| M :: D Bool | |
| F :: Int -> D Int | |
| deriving instance Show (D a) | |
| main :: IO () |
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
| open ExtUtils; | |
| module DragDropContext = { | |
| [@bs.module "react-beautiful-dnd"] external reactClass : ReasonReact.reactClass = | |
| "DragDropContext"; | |
| Js.log(reactClass); | |
| let make = (~onDragEnd, children) => | |
| ReasonReact.wrapJsForReason(~reactClass, ~props={"onDragEnd": onDragEnd}, children); | |
| }; |
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 path = require('path'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const outputDir = path.join(__dirname, 'build/'); | |
| const isProd = process.env.NODE_ENV === 'production'; | |
| module.exports = { | |
| entry: './src/Index.bs.js', | |
| target: 'electron-main', | |
| mode: isProd ? 'production' : 'development', |
OlderNewer