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 'googl' | |
| require 'open-uri' | |
| require 'google/apis/urlshortener_v1' | |
| ip = open('http://icanhazip.com', &:read).strip | |
| api_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
| urls = ["www.facebook.com", | |
| "www.youtube.com", | |
| "www.reddit.com", |
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
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| using namespace std; | |
| ifstream d ("Duomenys.txt"); | |
| ofstream r ("Rezultatai.txt"); | |
| struct krepsininkas { |
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 ruby | |
| require 'redditkit' | |
| class User | |
| def initialize | |
| puts "Enter username" | |
| @username = gets.chomp | |
| @user_content = RedditKit.user_content(@username) | |
| puts "Downvote or upvote?" | |
| if gets.chomp == "upvote" |
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
| void rusiuoti(int mas[], int n) | |
| { | |
| int laik; | |
| for(int i = 0; i < n; i++) | |
| { | |
| for(int j = 0; j < n - 1; j++) | |
| { | |
| //Pakeisti > i < jei nori kad rusiuotu mazejimo tvarka | |
| if(mas[j] > mas[j+1]) | |
| { |
NewerOlder