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 java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class SayNumbers { | |
public static void main(String[] args) { | |
String[] strings = {"000", "100", "001", "011", "111", "321", "1000", "1001", "000000", "000001", "001001", "1000000", | |
"22329192", "569045", "100000000000000", "12000450345000", "100, 000, 000, 000, 000", "100, 000, 000, 000, 00000"}; | |
for (String s : strings) { | |
// String[] tokens = splitReverse(s, 3); |
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
/************ | |
tcp_server.c | |
************/ | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<sys/types.h> | |
#include<sys/socket.h> | |
#include<netinet/in.h> |
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 java.io.IOException; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
public class scraper { | |
public static void main(String[] args) throws IOException { | |
Document doc = Jsoup.connect("https://myanimelist.net/topanime.php").get(); | |
for(Element row: doc.select(".ranking-list")) { | |
String title = row.select(".title").text(); |
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
#/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import json | |
import csv | |
import os | |
from os import walk | |
import re | |
f =[] |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import json | |
import foursquare | |
import urllib | |
from selenium import webdriver | |
import time | |
import getpass | |
client_id = raw_input('Client ID: ') |