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 socket | |
serverName = 'localhost' | |
serverPort = 12000 | |
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
clientSocket.connect((serverName, serverPort)) | |
sentence = input('Input lowercase sentence: ') | |
clientSocket.send(sentence.encode()) |
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
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
window: | |
decorations: none | |
startup_mode: Windowed | |
dynamic_title: true | |
dynamic_padding: true | |
padding: | |
x: 1 | |
y: 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
require 'aws-sdk' | |
credentials = Aws::Credentials.new(ENV['S3_ACCESS_KEY'], ENV['S3_SECRET_ACCESS_KEY']) | |
Aws.config.update( | |
region: 'sa-east-1', | |
credentials: credentials | |
) | |
objects_keys = [] |
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
list = [ | |
{ | |
id: 1, | |
name: 'ze', | |
age: 12, | |
app_id: 1, | |
url: 'www.1.com' | |
}, | |
{ | |
id: 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
# Ring the bell if any background window rang a bell | |
set -g bell-action any | |
# Default termtype. If the rcfile sets $TERM, that overrides this value. | |
set -g default-terminal screen-256color | |
# Keep your finger on ctrl, or don't | |
bind-key ^D detach-client | |
# Create splits and vertical splits |
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
require 'aws-sdk' | |
credentials = Aws::Credentials.new(ENV['S3_ACCESS_KEY'], ENV['S3_SECRET_ACCESS_KEY']) | |
Aws.config.update( | |
region: ENV['S3_REGION'], | |
credentials: credentials | |
) | |
s3 = Aws::S3::Resource.new(ENV['S3_REGION'], credentials: credentials) |
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
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
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
int is_bit_i_set(unsigned char c, int i) { | |
unsigned char mask = 1 << i; | |
return mask & c; | |
} | |
void set_bit(unsigned char *c, int i) { | |
*c |= 1 << i; | |
} | |
void clear_byte(unsigned char *byte) { |