Moved to https://github.com/oprypin/game-bots/tree/master/shenzhen-io
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
| diff --unified --recursive konversation-1.7.2/src/viewer/chatwindow.cpp konversation-1.7.2.new/src/viewer/chatwindow.cpp | |
| --- konversation-1.7.2/src/viewer/chatwindow.cpp 2017-05-09 17:29:00.000000000 +0200 | |
| +++ konversation-1.7.2.new/src/viewer/chatwindow.cpp 2017-11-07 00:03:57.217338235 +0100 | |
| @@ -278,7 +278,15 @@ | |
| void ChatWindow::append(const QString& nickname, const QString& message, const QHash<QString, QString> &messageTags, const QString& label) | |
| { | |
| if(!textView) return; | |
| - textView->append(nickname, message, messageTags, label); | |
| + QString nickname_ = nickname; | |
| + QString message_ = message; |
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
| # Check your passwords against https://haveibeenpwned.com/Passwords | |
| # Usage: | |
| # crystal check_passwords.cr -- pwned-passwords-sha1-ordered-by-hash*.txt | |
| # Enter your passwords one per line, then press Return twice. Or pipe them in. | |
| require "digest/sha1" | |
| passwords = Array(String).new | |
| until (line = gets(chomp: true) || "").empty? | |
| passwords << line |
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 key | |
| STDIN.raw do |io| | |
| loop do | |
| buffer = Bytes.new(3) | |
| bytes_read = io.read(buffer) | |
| if bytes_read > 0 | |
| return String.new(buffer[0, bytes_read]) | |
| end | |
| end | |
| 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
| cd ~/.steam/steam/steamapps/common | |
| for d in *; do | |
| for f in "$d"/*; do | |
| file "$f" | grep -q 'ELF ' && | |
| strings "$f" | grep -q 'UnityPlayer/' && | |
| echo "$(strings "$f" | grep -P -m1 -o '(?<=UnityPlayer/)[^ ]+') $d" && | |
| break | |
| done | |
| done | sort -V |
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
| [General] | |
| Description=Applications | |
| Opacity=1 | |
| Wallpaper= | |
| [Background] | |
| Color=255,255,255 | |
| [BackgroundIntense] | |
| Color=220,255,220 |
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 RoundedPolygon < SF::Shape | |
| def initialize | |
| super() | |
| @result = [] of SF::Vector2f | |
| end | |
| def assign(points, radius : Number) | |
| @result.clear |
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
| set -x | |
| for branch in master feature/assert; do | |
| git checkout $branch && make clean && time make && | |
| time ./bin/crystal build -o .build/all_spec spec/all_spec.cr && time .build/all_spec | |
| done | |
| + for branch in master feature/assert | |
| + git checkout master | |
| Switched to branch 'master' | |
| Your branch is up-to-date with 'origin/master'. |
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 "compiler/crystal/syntax" | |
| include Crystal | |
| class AssertToSVisitor < ToSVisitor | |
| getter locations = [] of Int32 | |
| def visit_any(node) | |
| if node.class.name.ends_with?("Literal") || node.is_a? Path | |
| @str << node.to_s | |
| return false |
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
| SoundBufferRecorder.hpp | |
| + ~SoundBufferRecorder(); | |
| SoundRecorder.hpp | |
| + void setChannelCount(unsigned int channelCount); | |
| + unsigned int getChannelCount() const; | |
| SoundSource.hpp | |
| + SoundSource& operator =(const SoundSource& right); | |
| BlendMode.hpp | |
| - Add, ///< Pixel = Src * SrcFactor + Dst * DstFactor | |
| - Subtract ///< Pixel = Src * SrcFactor - Dst * DstFactor |