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
'use client'; | |
import { Button } from '@/components/ui/button'; | |
import { Input } from '@/components/ui/input'; | |
import { Send } from 'lucide-react'; | |
import { useActionState } from 'react'; | |
import { Label } from '@/components/ui/label'; | |
import { Textarea } from '@/components/ui/textarea'; | |
import Form from 'next/form'; | |
import { contact } from '@/app/contact/actions'; |
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
# Unknown collation: 'utf8mb4_unicode_520_ci' | |
sed -i'.bak' "s/utf8mb4_unicode_520_ci/utf8mb4_unicode_ci/g;" file.sql | |
# COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'utf8mb4' | |
sed -i'.bak' "s/utf8_general_ci/utf8mb4_unicode_ci/g;" file.sql |
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
# Basic compton config with fade transition and shadows | |
# Full list of options at: https://github.com/chjj/compton/blob/master/man/compton.1.asciidoc | |
# Performance tweak options, more info at https://github.com/chjj/compton/wiki | |
paint-on-overlay = true; # Paint on X Composite overlay window instead of on root window | |
glx-no-stencil = true; | |
glx-no-rebind-pixmap = true; | |
# Drop shadows |
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 {OBJECTS} from './my.token.ts'; | |
@Injectable() | |
export class MyInitializer { | |
constructor(private injector: Injector) { | |
} | |
appInitializer(): Promise<any> { | |
const p: Promise<any> = this.injector.get(LOCATION_INITIALIZED, Promise.resolve(null)); | |
return p.then(() => { |
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 | |
foreach (new DirectoryIterator('./') as $fileInfo) { | |
if($fileInfo->isDot()) continue; | |
$file = $fileInfo->getBasename(); | |
//var_dump($file); |
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 | |
$json = <<<JSON | |
{ | |
"kind": "youtube#searchListResponse", | |
"etag": "\"I_8xdZu766_FSaexEaDXTIfEWc0/hys1HflQr8XiiYpydVnkJA-oudA\"", | |
"regionCode": "DE", | |
"pageInfo": { | |
"totalResults": 1, | |
"resultsPerPage": 5 | |
}, |
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 {Component} from '@angular/core'; | |
import {ROUTER_DIRECTIVES} from '@angular/router'; | |
import '../style/app.scss'; | |
import {ToasterContainerComponent, ToasterService} from 'angular2-toaster/angular2-toaster'; | |
import {MenuComponent} from './layout/menu/menu.component'; | |
import {ContentComponent} from './layout/content/content.component'; | |
import {AuthService} from "./modules/auth/auth.service"; | |
/* | |
* App Component |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Theomega76| Mortgage Table with Inputs</title> | |
<meta charset="utf-8" /> | |
<!-- Move to bottom later on for better performance --> | |
<script src="js/jquery-1.11.2.js"></script> | |
</head> |
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 | |
class ImplementationTest extends TestCase | |
{ | |
public function setUp() | |
{ | |
parent::setUp(); | |
$this->setUpDb(); | |
} |
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
# Expire rules for static content | |
# No default expire rule. This config mirrors that of apache as outlined in the | |
# html5-boilerplate .htaccess file. However, nginx applies rules by location, | |
# the apache rules are defined by type. A consequence of this difference is that | |
# if you use no file extension in the url and serve html, with apache you get an | |
# expire time of 0s, with nginx you'd get an expire header of one month in the | |
# future (if the default expire rule is 1 month). Therefore, do not use a | |
# default expire rule with nginx unless your site is completely static | |
NewerOlder