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 twitter4j.*; | |
| import twitter4j.conf.ConfigurationBuilder; | |
| public class TwitterBot { | |
| private final static int TWEETS_IN_PAGE = 100; | |
| public static void main(String[] args) { | |
| //Read the twitter4j.properties | |
| ConfigurationBuilder cb = new ConfigurationBuilder(); | |
| try { |
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
| <link rel="import" href="../core-pages/core-pages.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
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
| #!/bin/bash | |
| SEC=0 # in seconds | |
| MIN=0 # in minutes | |
| while !(ping -c1 google.com > /dev/null 2>&1); do | |
| echo $SEC | |
| let SEC=SEC+1 | |
| sleep 1 | |
| done | |
| let MIN=SEC/60 | |
| let SEC=SEC-MIN*60 |
NewerOlder