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
| Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } |
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
| //install library | |
| $ brew install imagemagick | |
| //file content | |
| for f in *.png; do | |
| convert ./"$f" ./dist/"${f%}.pdf" | |
| done | |
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
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', |
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
| kill $(lsof | grep 1001 | awk '{print $2}') |
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
| FROM node:8.11.4-slim | |
| USER root | |
| RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' >> /etc/apt/sources.list.d/pgdg.list | |
| RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - | |
| RUN apt-get update | |
| RUN apt-get install -y python3-pip | |
| RUN pip3 install awscli | |
| RUN apt-get install -y vim | |
| RUN apt-get install -y postgresql-client-10: | |
| RUN apt-get install -y gettext-base -y |
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
| set noeol | |
| ## Install pathogen and use a proper directory structure | |
| ``` | |
| cd | |
| mkdir -p .vim/{autoload,colors,syntax,plugin,spell,config} | |
| mv .vimrc .vim/vimrc | |
| ln -s .vim/vimrc .vimrc | |
| cd ~/.vim | |
| git clone https://github.com/tpope/vim-pathogen.git pathogen |
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
| from random import shuffle | |
| def generate_prisoner(pick, assigned, guess): | |
| return {'pick': pick, 'guess': guess, 'assigned': assigned} | |
| def generate_prisoners(prisoners_count): | |
| collection1 = list(range(1, prisoners_count + 1)) | |
| collection2 = list(range(1, prisoners_count + 1)) |
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 os | |
| import sys | |
| def prime(n): | |
| primes = [] | |
| for num in range(0, n): | |
| if num > 1: | |
| for i in range(2, num): | |
| if (num % i) == 0: |
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
| #!/bin/env bash | |
| OUT="./mp3" | |
| mkdir ${OUT} | |
| for f in ls ./*.flac; do | |
| echo "processing '${f}'" | |
| if [ -f "${f}" ]; then | |
| CMD='ffmpeg -i "'""${f}""'" ${OUT}/"'""$(echo ${f} | sed s/.flac/.mp3/)""'"' | |
| eval "${CMD}" | |
| fi |
OlderNewer