A dynamic, expressive, powerful language compiling to CSS.
SLIDE:
tj holowaychuk
#!/usr/bin/env python | |
# | |
# Looks up a Mac's friendly model name. | |
# | |
# Based on http://apple.stackexchange.com/a/98089/21050 | |
# | |
from subprocess import check_output | |
from urllib import urlopen | |
import xml.etree.ElementTree as ET |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, unicode_literals | |
import os | |
import socket | |
from datetime import datetime | |
from urllib import parse | |
from klein import Klein | |
from twisted.web.static import File | |
from twisted.python.filepath import FilePath |
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
that detects and handles AJAXed content. | |
Usage example: | |
waitForKeyElements ( | |
"div.comments" | |
, commentCallbackFunction | |
); |
#when we create new function or install new bin , the default zsh cant get the new completion for us,so we | |
#can add a new function for this problem,you can add the blow content in your .zshrc file | |
function reload() { | |
if [[ "$#*" -eq 0 ]]; then | |
test -r /etc/zsh/zsh-oli && . /etc/zsh/zsh-oli | |
test -r ~/.zshrc && . ~/.zshrc | |
return 0 | |
else | |
local fn | |
for fn in $*; do |
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
# core | |
brew install coreutils | |
# key commands | |
brew install binutils | |
brew install diffutils | |
brew install ed --default-names | |
brew install findutils --with-default-names |
Credit: Mark Kraus
Website: https://get-powershellblog.blogspot.com
function new-PowershellWebGUI ($HTMLRaw,$Title,$Runspace) { | |
[xml]$xaml = @" | |
<Window | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
Title="$Title" Height="500" Width="700"> | |
<Grid> | |
<DockPanel> | |
<WebBrowser Name="WebBrowser" DockPanel.Dock="Top" Margin="30"> | |
</WebBrowser> |
Function Trace-Word | |
{ | |
[Cmdletbinding()] | |
[Alias("Highlight")] | |
Param( | |
[Parameter(ValueFromPipeline=$true, Position=0)] [string[]] $content, | |
[Parameter(Position=1)] | |
[ValidateNotNull()] | |
[String[]] $words = $(throw "Provide word[s] to be highlighted!") |