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
beautifulsoup4==4.3.2 | |
requests==2.3.0 |
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
{ | |
"intents": [ | |
{ | |
"intent": "LaunchIntent" | |
}, | |
{ | |
"intent": "AMAZON.NoIntent" | |
}, | |
{ | |
"intent": "SumIntent", |
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
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
# open new tabs in same directory | |
source /etc/profile.d/vte.sh |
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
""" | |
String Calculator | |
1- The program can take 0, 1 or 2 numbers and will | |
return their sum, (for an empty string it will return 0) | |
for example "" or "1" or "1,2" -> 0, 1, 3 | |
2- Allow the Add method to handle an unknown amount | |
of numbers |
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 fizzbuzz(number) | |
if number == 0 | |
return '0' | |
elsif number % 15 == 0 | |
return 'fizzbuzz' | |
elsif number % 3 == 0: | |
return 'fizz' | |
elsif number % 5 == 0: | |
return 'buzz' | |
end |
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 fizzbuzz(number){ | |
if(number === 0){ | |
return '0'; | |
} | |
if(number % 3 === 0 && number % 5 === 0){ | |
return 'fizzbuzz'; | |
} | |
if(number % 3 === 0){ |
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
<?php | |
class FizzBuzz | |
{ | |
static public function categorize($num) { | |
$result = ''; | |
if($num === 0){ | |
return '0'; | |
} |
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 fizzbuzz(num): | |
if num == 0: | |
return '0' | |
if num % 3 == num % 5 == 0: | |
return 'fizzbuzz' | |
if num % 3 == 0: | |
return 'fizz' |
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 os | |
import sqlite3 as sqlite | |
import socket | |
HOST = '' | |
PORT = 1043 | |
BUFSIZE = 1024 | |
ADDR = (HOST,PORT) | |
WORKDIR = '/home/armonge/tmp/whois-python/' |
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
style "imhtml-fix" | |
{ | |
font_name = "Monospace 8" | |
} | |
# Conversation entry box--where you type. | |
widget "*pidgin_conv_entry" style "imhtml-fix" | |
# Conversation history pane--where you read the conversation. | |
widget "*pidgin_conv_imhtml" style "imhtml-fix" |