Python 3.6 is needed by Tensorflow
This file contains 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 | |
flv_input="$1" | |
mp4_output=`echo "$flv_input" | sed s/flv$/mp4/` | |
echo converting $flv_input to $mp4_output | |
ffmpeg -i "$flv_input" "$mp4_output" |
This file contains 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
Demonstrate how to use getters and setters in Ruby | |
This file contains 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
class Foo | |
# initialize instance variables | |
def initialize(bar="bar", baz="baz") | |
@bar = bar | |
@baz = baz | |
end | |
end |
This file contains 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.Map; | |
public class MapMap | |
{ | |
Map<String, String> map; | |
public static void map(Object key, Object value) | |
{ | |
System.out.println(key + ":" + value); | |
} |
This file contains 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
$username = $(Get-ChildItem Env:USERNAME).value | |
$password = $(Get-ChildItem Env:PASSWORD).value | |
$credentials = "$username`:$password" | |
$encodedCredentials = ` | |
[System.Convert]::ToBase64String( ` | |
[System.Text.Encoding]::ASCII.GetBytes($credentials)) | |
Invoke-WebRequest ` | |
-Uri https://api.example.com/some/endpoint ` |
This file contains 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
(function( $ ) { | |
$.fn.simulateDragDrop = function(options) { | |
return this.each(function() { | |
new $.simulateDragDrop(this, options); | |
}); | |
}; | |
$.simulateDragDrop = function(elem, options) { | |
this.options = options; | |
this.simulateEvent(elem, options); | |
}; |
This file contains 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
# this is really just an interface, but python doesn't really have interfaces | |
class PaymentProcessor(): | |
def make_payment(self, payment_info, amount): | |
raise NotImplementedError() | |
#any other helper methods & properties | |
# this technically implements payment processor, but doesn't do anything -- used for testing | |
class MockPaymentProcessor(PaymentProcessor): |
This file contains 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
Show hidden characters
{ | |
"cmd": ["sass", "--update", "$file:${file_path}/../css/${file_base_name}.css", "--style", "expanded", "--stop-on-error", "--no-cache"], | |
"selector": "source.sass, source.scss", | |
"line_regex": "Line ([0-9]+):", | |
"osx": | |
{ | |
"path": "/usr/local/bin:$PATH" | |
}, |
This file contains 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
using TDAPIOLELib; | |
namespace oneshore.QCIntegration.Examples | |
{ | |
public class CreateBug | |
{ | |
public static void Main() | |
{ | |
String qcUrl = "http://localhost:8080/qcbin"; | |
String qcDomain = "oneshore"; |