$ find . -type f -name "*.md" -print > 'Some File.txt'
$ git config credential.helper store
$ git push https://github.com/owner/repo.git
Username for 'https://github.com': <USERNAME>
Password for 'https://[email protected]': <PASSWORD>
#!/usr/bin/python | |
from HTMLParser import HTMLParser | |
class MyHTMLParser(HTMLParser): | |
def handle_starttag(self, tag, attrs): | |
if tag == "a": | |
for name, value in attrs: | |
if name == "href": | |
print name, "=", value | |
parser = MyHTMLParser() | |
parser.feed(your_html_string) |
let request = require('request') | |
, path = require('path') | |
, fs = require('fs') | |
, url = "https://api.github.com/users/thomastraum/gists" | |
, savepath = './gists'; | |
request(url, function (error, response, body) { | |
if (!error && response.statusCode == 200) { |
You can create two kinds of gists: public and secret. Create a public gist if you're ready to share your ideas with the world or a secret gist if you're not.
Every gist is a Git repository, which means that it can be forked and cloned. If you are signed in to GitHub when you create a gist, the gist will be associated with your account and you will see it in your list of gists when you navigate to your gist home page.
Gists can be public or secret. Public gists show up in Discover, where people can browse new gists as they're created. They're also searchable, so you can use them if you'd like other people to find and see your work. After creating a gist, you cannot convert it from public to secret.
Secret gists don't show up in Discover and are not searchable. After creating a gist, you cannot convert it from public to secret. Secret gists aren't private. If you send the URL of a secret gist to a friend, they'll be able to see it. However, if someone you don't know discovers the URL, t
This cheat sheet is automatically generated from GitHub Emoji API and Unicode Full Emoji List.
Markdown is a lightweight and easy-to-use syntax for styling all forms of writing on the GitHub platform.
What you will learn:
- How the Markdown format makes styled collaborative editing easy
import "package:flutter/material.dart"; | |
import 'package:flutter/services.dart'; | |
import 'dart:math'; | |
const CURVE_HEIGHT = 160.0; | |
const AVATAR_RADIUS = CURVE_HEIGHT * 0.28; | |
const AVATAR_DIAMETER = AVATAR_RADIUS * 2; | |
void main() => runApp(new MyApp()); |
#!/bin/bash | |
# your target file | |
CONFIG=./config.txt | |
# comment target | |
comment() { | |
sed -i '' "s/^$1/#$1/" $CONFIG | |
} |