I really liked that little AT-AT Walker animation so I decided to recreate it in good pure CSS only. No JS was harmed. Just for fun!
Forked from r4ms3s's Pen STAR WARS AT-AT Walker.
A Pen by Captain Anonymous on CodePen.
| // the "old" way | |
| $ pip freeze > requirements.txt | |
| // looks at imports in your codebase and only includes those in requirements | |
| $ pipreqs | |
| // find out what dependencies need updating | |
| $ pip list --outdated | |
| // why are these packages here? |
| import collections | |
| import fileinput | |
| import os | |
| def find_files(path='.', ext='.py'): | |
| for root, dirs, filenames in os.walk(path): | |
| for filename in filenames: | |
| if filename.endswith(ext): | |
| yield(os.path.join(root, filename)) | |
| def is_line(line): |
| //oauth2 auth | |
| chrome.identity.getAuthToken( | |
| {'interactive': true}, | |
| function(){ | |
| //load Google's javascript client libraries | |
| window.gapi_onload = authorize; | |
| loadScript('https://apis.google.com/js/client.js'); | |
| } | |
| ); |
I really liked that little AT-AT Walker animation so I decided to recreate it in good pure CSS only. No JS was harmed. Just for fun!
Forked from r4ms3s's Pen STAR WARS AT-AT Walker.
A Pen by Captain Anonymous on CodePen.
| #!/bin/sh | |
| # Inside any git tracked repository... | |
| # cp pre-commit path/to/project/.git/hooks/pre-commit | |
| # chmod +x path/to/project/.git/hooks/pre-commit | |
| PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
| STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` | |
| # Determine if a file list is passed |
| "ApiResponse": { | |
| "type": "object", | |
| "properties": { | |
| "version": { | |
| "type": "string" | |
| }, | |
| "success": { | |
| "type": "boolean" | |
| }, | |
| "message": { |
| "/advertisers/create": { | |
| "post": { | |
| "tags": [ | |
| "advertisers" | |
| ], | |
| "summary": "Creates an advertiser", | |
| "description": "This endpoint is for the creation of an advertiser....", | |
| "operationId": "create", | |
| "produces": [ | |
| "application/json" |
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "description": "Enter your API key in the upper right and click on an endpoint below to start testing!", | |
| "version": "v1", | |
| "title": "API Documentation", | |
| "termsOfService": "http://www.leadspedia.com/saas-subscription-agreement.html", | |
| "contact": { | |
| "email": "support@leadspedia.com" | |
| } |
| <?php | |
| var_dump((31 - 18.6)); | |
| // float(12.4) | |
| var_dump((31 - 18.6) > 12.4); | |
| // bool(false) | |
| var_dump((31 - 18.6) < 12.4); | |
| // bool(true) WTF?!?!!? |