This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| import { Pipe, PipeTransform } from '@angular/core'; | |
| import { DomSanitizer, SafeHtml } from "@angular/platform-browser"; | |
| @Pipe({ | |
| name: 'safeHtml' | |
| }) | |
| export class SafeHtmlPipe implements PipeTransform { | |
| constructor(private _sanitizer:DomSanitizer) {} |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """Template for python3 terminal scripts. | |
| This gist allows you to quickly create a functioning | |
| python3 terminal script using argparse and subprocess. | |
| """ | |
| import argparse |
| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |
| nginx/ | |
| !nginx/.gitkeep | |
| !nginx/logs/.gitkeep | |
| src/ | |
| tmp/ |
| function Invoke-Elasticsearch { | |
| [CmdletBinding()] | |
| Param( | |
| [Uri]$Uri, | |
| [Microsoft.PowerShell.Commands.WebRequestMethod]$Method = 'Get', | |
| $Body = $null, | |
| [PSCredential]$Credential | |
| ) | |
| $headers = @{} |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xsl:stylesheet version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
| <xsl:strip-space elements="*" /> | |
| <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> | |
| <xsl:template match="node()|@*"> | |
| <xsl:copy> | |
| <xsl:apply-templates select="@*|node()"/> | |
| </xsl:copy> | |
| </xsl:template> |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| # -*- coding: utf-8 -*- | |
| ''' | |
| Usage: | |
| >>> f = open('usc08.10') | |
| >>> x = getlines(f) | |
| >>> x.next() | |
| GPOLocatorLine(code='F', arg='5800', data=u'\r\n') | |
| >>> print x.next().data | |
| TITLE 8–ALIENS AND NATIONALITY |
| function simpleSearch(text, str) { | |
| var matches = []; | |
| for (var i = 0; i <= text.length; i++) { | |
| if (matchesAtIndex(i, text, str)) { | |
| matches.push(i); | |
| } | |
| } | |
| return matches; | |
| } |