Skip to content

Instantly share code, notes, and snippets.

View Wingless-Archangel's full-sized avatar
🏠
Working from home

Wingless-Archangel

🏠
Working from home
  • The Matrix
View GitHub Profile
@Wingless-Archangel
Wingless-Archangel / 100years.py
Created November 5, 2016 02:52
return year when you are 100
#!/usr/bin/python3
import datetime
def main():
age = input("Please enter your age : ")
print("You will be 100 years in %d" % (datetime.datetime.now().year+(100-age)))
if __name__ == '__main__':
main()
‪#‎include‬ <stdio.h>
‪#‎define‬ PRIME_SIZE 20
void primenum(int *pPrimeArray, int nSize)
{
pPrimeArray[0] = 2;
for (int i = 1; i<nSize; i++)
{
int j;
int n = pPrimeArray[i-1]; // last prime
do
2015-09-29 15:47:03 +0700
python
configure.py
--confirm-license
--bindir=/usr/local/Cellar/pyqt/4.11.3_1/bin
--destdir=/usr/local/Cellar/pyqt/4.11.3_1/lib/python2.7/site-packages
--sipdir=/usr/local/Cellar/pyqt/4.11.3_1/share/sip
Determining the layout of your Qt installation...