$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
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
############################## | |
## Java | |
############################## | |
.mtj.tmp/ | |
*.class | |
*.jar | |
*.war | |
*.ear | |
*.nar | |
hs_err_pid* |
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
{ | |
"globals" : | |
{ | |
"alwaysShowTabs" : true, | |
"copyOnSelect" : false, | |
"defaultProfile" : "{00000000-0000-0000-ba54-000000000001}", | |
"initialCols" : 120, | |
"initialRows" : 30, | |
"keybindings" : | |
[ |
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 oddRow(n){ | |
let final = [] | |
let total = (n*(n+1))*0.5; | |
let start = total-(n-1) | |
for(let i = start; i <= total; i++){ | |
final.push((i*2)-1); | |
} | |
return final | |
} |
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
def can_make_palindrome2(string): | |
letters = set(string) | |
length = len(string) | |
if length & 1: | |
temp = map(lambda x: string.count(x) & 1, letters) | |
return any(temp) and not(any(temp)) | |
else: | |
return all(map(lambda x: not(string.count(x) & 1), letters)) |
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
# Enter your code here. Read input from STDIN. Print output to STDOUT | |
string = "% percent of the lowest 1 2 3, for five 9??? WHat the FUCK!" | |
string = string.lower().split(' ') | |
seen = {} | |
for i in string: | |
temp = ''.join(list(filter(lambda x: x.isalpha(), i))) | |
if temp: | |
if temp in seen: | |
seen[temp] += 1 |
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
some_array_of_hashes = [ | |
{a: 1, b: 1, c: 1, d: 2, e: 4}, | |
{a: 1, b: 1, c: 1, d: 5, e: 1}, | |
{a: 1, b: 1, c: 1, d: 7, e: 8}, | |
{a: 1, b: 1, c: 1, d: 9, e: 6}, | |
{a: 1, b: 1, c: 2, d: 2, e: 3}, | |
{a: 1, b: 1, c: 3, d: 2, e: 3}, | |
{a: 1, b: 1, c: 4, d: 2, e: 3}, | |
] |
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
# | |
# PostgreSQL writes two optional commands to the database schema | |
# file, called db/structure.sql, that can only be run as a root | |
# database user. These are not needed actually, so comment them | |
# out automatically | |
# | |
# CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; | |
# COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; | |
# | |
namespace :db do |
Prerequisites:
Docker installed node/npm installed ruby, rails installed
run npm install
run docker-compose up
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 Data.Set(member, fromList) | |
import System.Environment(getArgs) | |
setVowel = fromList "aeiou" | |
countVowels :: String -> [Integer] | |
countVowels word = fmap oneLetter word | |
oneLetter :: Char -> Integer | |
oneLetter letter = if member letter setVowel then 1 else 0 |
NewerOlder