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
Import-Module Get-ChildItemColor | |
Import-Module PSReadLine | |
Set-Alias l Get-ChildItemColor -option AllScope | |
Set-Alias ls Get-ChildItemColorFormatWide -option AllScope | |
Set-Alias dir Get-ChildItemColor -option AllScope -Force | |
Set-Alias dc docker-compose | |
function DockerCompose-Exec() { | |
docker-compose exec $args |
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
#c::Center() ;Windows + c | |
#1::Center(0.95) ;Windows + 1 | |
#2::Center(0.85) ;Windows + 2 | |
#3::Center(0.75) ;Windows + 3 | |
#4::Center(0.65) ;Windows + 4 | |
#5::Center(0.55) ;Windows + 4 | |
SC29::$ ; map ½ to $ | |
Center(scaleRatio = 1) |
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 | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Http\Request; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f [NC] | |
RewriteRule ^(.*\.(js|css|png|jpe?g|gif|ico)) http://example.com/$1 [NC,P,L] | |
</IfModule> |
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 createCookie(name, value, days) { | |
var expires = ""; | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
expires = "; expires="+date.toGMTString(); | |
} | |
document.cookie = name+"="+value+expires+"; path=/"; | |
} |
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
// url = http://ceres.dk/beers/#2 | |
if(window.location.hash) { | |
beerNumber = window.location.hash.split("#")[0]; | |
$(".slick-slider").slick("goTo", parseInt(beerNumber, 10)); | |
} else { | |
// do nothing | |
} |
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
javascript:i=document.createElement("iframe");i.setAttribute("src","//www.youtube.com/embed/_D0ZQPqeJkk?modestbranding=1&autoplay=1");i.setAttribute("style","height: 200px; width: 200px; display:none;");document.getElementsByTagName("body")[0].appendChild(i); |
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
# top-most EditorConfig file | |
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
[Makefile] | |
indent_style = tab |
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
newCommand := YakyCommand{ | |
Name: "join-room", | |
HelpText: "i will join a room", | |
Commmand: func(yaky *Yaky, user string, args []string) error { | |
yaky.JoinRoom(args[0]) | |
return nil | |
}, | |
} | |
yaky.AddCommand(newCommand) |
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 | |
namspace Models; | |
class Jokes | |
{ | |
public $question; |