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 PATH, MANPATH, etc., for Homebrew. | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
function assume_aws_role() { | |
# Define a function to print the help message | |
function print_help { | |
echo "Usage: assume_aws_role [OPTIONS]" | |
echo "Assumes an AWS IAM role and exports the required credentials and assumed role information as environment variables." | |
echo "" | |
echo "Options:" |
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
print('hello blogger') |
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 odoo:11.0 | |
ENV LANG C.UTF-8 | |
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
version: "3" | |
services: | |
db: | |
image: postgres:9.4 | |
deploy: | |
replicas: 1 | |
volumes: | |
- pgsql_data:/var/lib/postgresql/data:rw,Z | |
environment: |
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 | |
import argparse | |
import os | |
import sys | |
import argparse | |
from PyQt5.QtWebEngineWidgets import QWebEnginePage | |
from PyQt5.QtWidgets import QApplication |
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 datetime import datetime | |
print('%d days to finish the military !!' % (datetime(2017, 9, 1) - datetime.today()).days) |
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 itertools import groupby | |
def pack(arr): | |
uniqe_items = [] | |
count_items = [] | |
for i in groupby(arr): | |
if i[0] not in uniqe_items: | |
count_items.append(len(list(i[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
'use strict'; | |
function pack(arr){ | |
// prev_item is the first item | |
var prev_item = arr[0]; | |
// count of the first item is 1 at this stage | |
var count_items = [1]; | |
// first item is very new to unique_items so it is unique | |
var unique_items = [prev_item]; |
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 createPyramid(base){ | |
if (base%2 == 0){ | |
throw "Pyramid base must be odd number" | |
} | |
var left = createLeftSide(base); | |
var right = createRightSide(base); | |
var final = []; | |
for (var i = 0; i < left.length; i++) { | |
final[i] = left[i].concat(right[i]); |
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
'use stirct'; | |
function calculator(){ | |
this.ans = 0; | |
var self = this; | |
this.add = add; | |
this.miniz = miniz; | |
this.div = div; |
NewerOlder