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
| [Desktop Entry] | |
| Name=Discord Canary | |
| StartupWMClass=discord | |
| Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone. | |
| GenericName=Internet Messenger | |
| Path=/opt/DiscordCanary | |
| Exec=/usr/bin/DiscordCanary | |
| Icon=/opt/DiscordCanary/discord.png | |
| Type=Application | |
| StartupNotify=true |
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
| This utilizes blns to cram strings through the 'widen' gem. | |
| The first line is the original string, the second, the 'widened' string, the third, the 'narrowened' string | |
| Test strings | |
| Scunthorpe General Hospital | |
| Scunthorpe General Hospital | |
| Scunthorpe General Hospital | |
| $100% true |
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
| class Daemon | |
| def self.run!(options = {}, &block) | |
| new(options, &block).run! | |
| end | |
| def initialize(options = {}, &block) | |
| check_pid | |
| daemonize | |
| write_pid | |
| trap_signals |
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
| <?php | |
| return [ | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | PDO Fetch Style | |
| |-------------------------------------------------------------------------- | |
| | | |
| | By default, database results will be returned as instances of the PHP |
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
| { | |
| "upload_date":"20151022", | |
| "extractor":"youtube", | |
| "height":1080, | |
| "like_count":6121956, | |
| "duration":367, | |
| "fulltitle":"Adele - Hello", | |
| "id":"YQHsXMglC9A", | |
| "requested_formats":[ | |
| { |
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
| def download(url) | |
| video = YoutubeDL.download(url) | |
| video.filename # => "Adele - Hello-YQHsXMglC9A.f137.mp4" | |
| video_with_title = Youtube.download(url, output: '%(title)s.%(ext)s') | |
| video_with_title.filename # => "Adele - Hello.mp4" | |
| title = YoutubeDL::Runner.new(url, get_title: true).run | |
| title # => "Adele - Hello" | |
| end |
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
| # Put this in your test_helper or spec_helper and add fixtures to 'fixtures.yml' | |
| def fixture(*keys) | |
| @fixtures ||= YAML.load(File.read(File.join(File.dirname(__FILE__), 'fixtures.yml'))) | |
| last_path = @fixtures | |
| keys.each { |key| last_path = last_path[key] } | |
| last_path | |
| end |
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
| (function(){var o=['overflow-x','fast','inherit'],w=0;if(!$){if(Δ){Δ.addRealFunctionalityOnTheFly();};};function c(t){s=$(t);if(w==0){w=s.css('width');};if(s.css('display')!='none'){s.css(o[0], 'hidden');s.animate({width: '0%'},{complete:function(){s.hide(o[1]);}});}else{s.show(o[1]);s.animate({width: w});s.css(o[0],o[2]);}}$('.collapse-toggle').click(function(){c($(this).data('target'));});})(); |
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
| _PLS_REMOVE="rm -rf" | |
| alias rmrf=_PLS_REMOVE | |
| alias del=_PLS_REMOVE | |
| alias delete=_PLS_REMOVE | |
| alias remove=_PLS_REMOVE | |
| _PLS_COPY="cp -R" | |
| alias copy=_PLS_COPY | |
| alias cpr=_PLS_COPY |
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
| source 'https://rubygems.org' | |
| # Backend Gems | |
| gem 'rails' | |
| gem 'sqlite3' | |
| gem 'sass-rails' | |
| gem 'uglifier' | |
| gem 'coffee-rails' | |
| gem 'jbuilder' | |
| gem 'sorcery' |