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
version: "3.9" | |
services: | |
sabnzbd: | |
image: linuxserver/sabnzbd | |
container_name: sabnzbd | |
environment: | |
- PUID=1026 | |
- PGID=100 | |
- TZ=America/Chicago | |
volumes: |
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
require "spec_helper" | |
describe ExampleController do | |
context "GET #index" do | |
let(:resources) { FactoryGirl.create_list(:resource) } | |
before do | |
get :index | |
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
// Useage: =GPT3(prompt) | |
// Example: =GPT3("This bot will generate a creative ad headline that is will increase views, clicks, and impressions, based on a website category.\n\nWebsite Category: tech\nHeadline: Why Google will win the AI wars\n\nWebsite Category: retail\nHeadline: Need a break? Check out our new fall selections now!\n\nWebsite Category: pharma\nHeadline: Are you ready for the next pandemic? Be prepared with your own pandemic survival kit today\n\nWebsite Category: travel\nHeadline: We noticed that cruise lines are super cheap now, find out why!\n\nWebsite Category: holiday\nHeadline: Partying for the holidays? Find a new coat to go out in!\n\nWebsite Category: sports\nHeadline:") | |
class OpenAIApp { | |
static get API_KEY_PROP() { | |
return "OPENAI_API_KEY"; | |
} | |
constructor(apiKey) { | |
this.apiKey = apiKey; |
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 google.auth | |
import googleapiclient.discovery | |
API_NAME = "displayvideo" | |
API_SCOPES = ["https://www.googleapis.com/auth/display-video"] | |
API_VERSION = "v1" | |
credentials, project = google.auth.default(scopes=API_SCOPES) | |
print(f"Google Cloud Project ID: {project}.") |
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
javascript:var videos=document.getElementsByTagName("video");if(videos.length>0)for(var pipable=videos[0],i=0;i<videos.length;i++)if(!(pipable=videos[i]).paused&&pipable.webkitSupportsPresentationMode&&"function"==typeof pipable.webkitSetPresentationMode){pipable.webkitSetPresentationMode("picture-in-picture"===pipable.webkitPresentationMode?"inline":"picture-in-picture");break} |
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
javascript:if(window.WebKitPlaybackTargetAvailabilityEvent){var videos=document.getElementsByTagName("video");if(videos.length>0)for(var airplayable=videos[0],i=0;i<videos.length;i++)if(!(airplayable=videos[i]).paused){airplayable.webkitShowPlaybackTargetPicker();break}} |
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
module CarrierWave | |
module MiniMagick | |
def toaster_filter | |
manipulate! do |img| | |
img.modulate '150,80,100' | |
img.gamma 1.1 | |
img.contrast | |
img.contrast | |
img.contrast | |
img.contrast |
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 ruby | |
require 'rubygems' | |
require 'nokogiri' | |
XML_FILE = ARGV[0] | |
CSV_FILE = ARGV[1] | |
if XML_FILE.nil? || CSV_FILE.nil? | |
puts 'usage: ruby jmeterxmltocsv.rb source_file target_file' |
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
These are some needed bundles for TM2... | |
cd ~/Library/Application Support/Avian/Bundles | |
git clone https://github.com/cucumber/cucumber-tmbundle Cucumber.tmbundle | |
git clone https://github.com/kuroir/SCSS.tmbundle | |
git clone https://github.com/mads379/Whitespace.tmbundle | |
open Cucumber.tmbundle/color_themes/Sunburst.tmTheme |
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
$('.array-of-hashes-tables').on('click', '.array-of-hashes-table .remove', function(event) { | |
event.preventDefault(); | |
$(this).closest('.array-of-hashes-table').remove(); | |
}); | |
$('.array_of_hashes .add').on('click', function(event) { | |
event.preventDefault(); | |
var $this = $(this); | |
var $tables = $this.siblings('.array-of-hashes-tables'); | |
var $cloneable = $tables.find('.cloneable').first(); |
NewerOlder