| Code | Definition | Meaning |
|---|---|---|
| 1xx | Informational | Received request, continuing process. |
| 2xx | Success | The action requested was received, understood, accepted and processed. |
| 200 | OK | Action completed successfully. |
| 3xx | Redirection | The client must take additional action for the request to be completed |
| 302 | Found | The requested URI was found. Sometimes results in a redirect, similarly to 303 See Other |
| 303 | See Other | The response can be found under another URI. Assume the server received the data. |
| 304 | Not Modified | A cached version of the re |
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
| #!/bin/sh | |
| usage() { | |
| cat<<EOF | |
| usage: $(basename $0) [-h] dev | |
| Useful for getting around timed public WiFi sessions. Your wireless device may | |
| need to be restarted after running for the changes to apply. | |
| EOF | |
| } |
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
| file-url(file, path = '../fonts/) | |
| return path + file | |
| font-face(family, file, weight = 'normal') | |
| @font-face | |
| font-family family | |
| src url(file-url(file + '.eot')) | |
| src url(file-url(file + '.eot?#iefix')) format('embedded-opentype'), | |
| url(file-url(file + '.woff2')) format('woff2'), | |
| url(file-url(file + '.woff')) format('woff'), |
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
| // smallest font size: | |
| $font-size: 100%; | |
| // minimum width before resizing rules apply: | |
| $min-width: 340px; | |
| // the range in width to create the resizing steps: | |
| $range: 600px; | |
| // number of resizing steps to make (more steps yields more fluid resizing): | |
| $steps: 10; | |
| // calculate the width of each step: | |
| $step-size: $range / $steps; |
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
Show hidden characters
| { | |
| // draw spaces and tabs (selection, all, none) | |
| "draw_white_space": "all", | |
| // auto-tidy lines if they have trailing whitespace | |
| "trim_trailing_white_space_on_save": true, | |
| // always have a newline character at the end of a file | |
| "ensure_newline_at_eof_on_save": true, | |
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
| #!/usr/bin/env sh | |
| usage() { | |
| cat <<EOF | |
| whatthecommit.sh - an offline commit message generator based on whatthecommit.com | |
| usage: $(basename $0) [-h] | |
| -h print this help | |
| example: |
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 <substrate.h> | |
| // hide the status bar (fullscreen) | |
| %hook TMPostsViewController | |
| - (BOOL)prefersStatusBarHidden | |
| { | |
| return YES; | |
| } |
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
| #!/bin/bash | |
| # by @travis-g, WTFPL 2 (https://wtfpl2.com/) | |
| function showHelp() { | |
| echo "Usage: vol_change.sh [up|down INT] | |
| "; exit $1; } | |
| if [[ ! $@ ]] ; then showHelp 1; fi # show help if no opts | |
| i=5 && [[ $2 =~ ^[0-9]+$ ]] && i=$2 # set base increment | |
| case $1 in | |
| "up") i=$i"+";; | |
| "down") i=$i"-";; |
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> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| <!--[if lt IE 9]> | |
| <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> | |
| </head> | |
| <body> |
NewerOlder