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 | |
=begin | |
(Just a Ruby programming language syntax review) | |
Converted my Python code here http://ferdinandsilva.com/code/4965681/ to Ruby code | |
=end | |
require 'socket' | |
QOTD_SERVER = "alpha.mike-r.com" #operational QOTD Server | |
begin |
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 | |
=begin | |
(Just a Ruby programming language syntax review again!!!) | |
ASS!!! (Advanced Sub Station Alpha) file converter to srt file | |
=end | |
def desc_to_tag(description, txt) | |
case | |
when description == "Bold" |
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 | |
=begin | |
(Ruby programming language syntax review again and again!!!!) | |
Converted my Python code here http://ferdinandsilva.com/code/6861541/ to Ruby code | |
=end | |
require "net/http" | |
require "json" | |
gist_uri = URI "https://api.github.com/users/six519/gists" #change six519 to your username | |
res = Net::HTTP.get_response gist_uri |
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 | |
import requests | |
import sys | |
import json | |
POPULAR_GAMES_FILE = "twitch_popular.json" | |
POPULAR_GAMES_MAX_COUNT = 6 | |
POPULAR_STREAM_PER_GAME = 5 | |
def errorMessage(msg, errCode=-1): |
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 bash | |
: ' | |
Tested | |
====== | |
Fedora 20 | |
CentOS 7 | |
What? | |
===== |
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 | |
""" | |
Installing the API client | |
========================= | |
pip install pyyts | |
API client code can be viewed at | |
================================ |
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 | |
""" | |
Python Module Depedencies: | |
========================== | |
falcon | |
requests | |
""" | |
import falcon | |
import json | |
import requests |
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
'Install Newtonsoft.json | |
'----------------------- | |
' | |
'PM> Install-Package Newtonsoft.Json -Version 6.0.8 | |
'Sample Usage | |
'------------ | |
'Dim jsonPost As New JsonPost("http://192.168.254.104:8000") | |
'Dim dictData As New Dictionary(Of String, Object) |
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
/* | |
What? | |
----- | |
C# version of http://ferdinandsilva.com/code/5ed917850f402b94ee6b/ | |
Install Newtonsoft.json | |
----------------------- | |
PM> Install-Package Newtonsoft.Json -Version 6.0.8 |
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
/** | |
* Setup | |
* ===== | |
* | |
* * Add permissions to manifest file | |
* | |
* 1) android.permission.RECEIVE_SMS | |
* 2) android.permission.SEND_SMS | |
* | |
* * Add receiver to manifest file |