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
| .long-text { | |
| white-space: -moz-pre-wrap; /* Mozilla */ | |
| white-space: -hp-pre-wrap; /* HP printers */ | |
| white-space: -o-pre-wrap; /* Opera 7 */ | |
| white-space: -pre-wrap; /* Opera 4-6 */ | |
| white-space: pre-wrap; /* CSS 2.1 */ | |
| white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */ | |
| word-wrap: break-word; /* IE */ | |
| word-break: break-all; | |
| } |
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 { Response, RequestOptions, Headers, ResponseContentType } from '@angular/http'; | |
| import * as FileSaver from 'file-saver'; | |
| /** | |
| * Get Audio | |
| * | |
| * @returns {Promise<Blob>} | |
| */ | |
| public getAudio(): Promise<Blob> { | |
| let url = `http://example.com/demo.wav`; |
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 { Pipe, PipeTransform } from '@angular/core'; | |
| import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser'; | |
| /* | |
| * Trust pipe | |
| * Usage: | |
| * value | safe | |
| */ | |
| @Pipe({ | |
| name: 'safe' |
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 | |
| /** | |
| * Code snippet with math lession | |
| * @author Nguyen Nhu Tuan <tuanquynh0508@gmail.com> | |
| */ | |
| // 2^3 = 8 | |
| echo getExponential(2, 3); | |
| echo '<br/>'; |
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 CommonBundle\Form\Type; | |
| use Doctrine\ORM\EntityRepository; | |
| use Symfony\Component\OptionsResolver\Options; | |
| use Symfony\Component\OptionsResolver\OptionsResolver; | |
| use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
| use Symfony\Bridge\Doctrine\Form\Type\EntityType; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormView; |
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 CommonBundle\Form\Type; | |
| use Doctrine\ORM\EntityRepository; | |
| use Symfony\Component\OptionsResolver\Options; | |
| use Symfony\Component\OptionsResolver\OptionsResolver; | |
| use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
| use Symfony\Bridge\Doctrine\Form\Type\EntityType; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormView; |
NewerOlder