Skip to content

Instantly share code, notes, and snippets.

@Makazy
Makazy / sublime-text-3.desktop
Created August 13, 2022 01:46 — forked from AnwarShah/sublime-text-3.desktop
A desktop application launcher for Sublime Text 3
[Desktop Entry]
Type=Application
Terminal=false
StartupNotify=true
Name=Sublime Text 3
Name[en_US]=Sublime Text 3
GenericName=Text Editor
GenericName[en_US]=Text Editor
Comment=Edit text files
Comment[en_US]=Edit text files
@Makazy
Makazy / example
Created May 23, 2020 17:28
Kotlin withNotNull
withNoNulls("hello", "world", Throwable("error")) { p1, p2, p3 ->
p3.printStackTrace()
p1.plus(" ").plus(p2)
}?.let {
Log.d("TAG", it)
} ?: throw Exception("One or more parameters was null")
@Makazy
Makazy / elements references
Last active May 10, 2017 13:20
API locSaison
nombre de chambre : 456
nombre de salles de bains (salles d'eau) : 460 || 461
accès internet : 539
nombre de lits : 457 || 459
@Makazy
Makazy / HasManyThrought
Last active May 5, 2017 10:12
[Laravel Eloquent Relationships] Métodes de relations entre les models #laravel #eloquent #relationships #hasmany #manytomany #polymorphic
public function targets(){
return $this->hasManyThrough('App\Models\Target', 'App\Models\Throught', 'throught_ref_id', 'target_ref_id', 'local_id');
}