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 | |
| .... | |
| Forms\Components\Tabs\Tab::make('teams') | |
| ->icon('heroicon-o-user-group') | |
| ->schema([ | |
| RelationManagerTable::make('teams') | |
| ->manager(ProjectResource\RelationManagers\TeamsRelationManager::class) | |
| ->parentRecord(fn ($livewire) => ($livewire->getRecord())), |
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
| int eventType = parser.getEventType(); | |
| boolean done = false; | |
| RssItem item = null; | |
| while (eventType != XmlPullParser.END_DOCUMENT && !done) { | |
| String name = null; | |
| switch (eventType) { | |
| case XmlPullParser.START_DOCUMENT: | |
| break; | |
| case XmlPullParser.START_TAG: | |
| name = parser.getName(); |
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
| #ifndef CONTENER_HPP | |
| #define CONTENER_HPP | |
| #include <string> | |
| #include <stdexcept> | |
| namespace TD { | |
| class ContenerException : public std::exception{ | |
| protected : | |
| std::string info; | |
| public : |
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
| namespace Math | |
| { | |
| class Matrix | |
| { | |
| public: | |
| } | |
| std::ostream& operator<< (std::ostream& stream, const Math::Matrix& matrix); |
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
| # Create a temp directory for our work | |
| tempbuild=`mktemp -d` | |
| cd $tempbuild | |
| # Determine kernel version (with and without Ubuntu-specific suffix) | |
| mykern=${1:-$(uname -r)} | |
| mykernver=linux-$(echo $mykern | cut -d'-' -f 1) | |
| # Install necessary deps to build a kernel | |
| sudo apt-get build-dep -y --no-install-recommends linux-image-$mykern |
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
| struct Class { | |
| size_t size; | |
| void * (* ctor) (void * self, va_list * app); | |
| void * (* dtor) (void * self); | |
| void * (* clone) (const void * self); | |
| int (* differ) (const void * self, const void * b); | |
| }; | |
| struct String { | |
| const void * class; /* must be first */ | |
| char * text; |
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
| $(document).ready(function () { | |
| init(); | |
| }); | |
| function init() { | |
| loadingll(); | |
| loadingl(); | |
| } | |
| function loadingll() { |
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 if the selected word is misspelled and offer spelling | |
| # suggestions if it is. | |
| if self.textCursor().hasSelection(): | |
| text = unicode(self.textCursor().selectedText()) | |
| if not self.dict.check(text): | |
| spell_menu = QMenu(u'اقتراحات التشكيل') | |
| spell_menu.setLayoutDirection(RightToLeft) | |
| for word in self.dict.suggest(text): | |
| action = SpellAction(word, spell_menu) | |
| action.correct.connect(self.correctWord) |
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
| ./mip_mTSPSynPred: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./mip_mTSPSynPred) | |
| ./mip_mTSPSynPred: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./mip_mTSPSynPred) |
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
| #!/bin/bash | |
| echo -e "==============EsiTux-cleaner===================" | |
| OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}') | |
| CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g') | |
| LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)" | |
| METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)" | |
| OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL) | |
| YELLOW="\033[1;33m" | |
| RED="\033[0;31m" | |
| ENDCOLOR="\033[0m" |
NewerOlder