Welcome to the leadgenius API. Below is the layout and relevant use cases.
| STATUS CODES | DESCRIPTION |
|---|---|
| 200 OK | Request processed successfully, look at response object for details |
| 202 Accepted | Means the request has been put in a queue for processing |
| class TimeSheet(models.Model): | |
| time_started = models.DateTimeField("Time Started", null=True, blank=True) | |
| time_finished = models.DateTimeField("Time Finished", null=True, blank=True) | |
| class TimeSheetForm(forms.ModelForm): | |
| class Meta: | |
| model = TimeSheet | |
| widgets = { | |
| 'time_started': forms.DateInput, |
| #! /bin/sh | |
| ####### | |
| # | |
| # Script to enable and disable airplay in OS X | |
| # | |
| ######### | |
| AIRPLAY=/System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent | |
| disable() { |
| """ | |
| Write a function that takes a list of positive integers as an input, and returns all of the pairs of integers it contains that sum to 100. | |
| You can assume that all inputs are between 1 and 99. | |
| Example Inputs and Outputs: | |
| [ 1, 98, 99 ] => [ [1, 99] ] | |
| [ 95, 5, 95 ] => [ [ 5, 95 ] ] | |
| [ 95, 5, 95, 5 ] => [ [ 5, 95 ], [ 5, 95 ] ] | |
| > 95 [5, 95, 5] |
| """ | |
| Write a function that takes a list of positive integers as an input, and returns all of the pairs of integers it contains that sum to 100. You can assume that all inputs are between 1 and 99. | |
| Example Inputs and Outputs: | |
| [ 1, 98, 99 ] => [ [1, 99] ] | |
| [ 95, 5, 95 ] => [ [ 5, 95 ] ] | |
| [ 95, 5, 95, 5 ] => [ [ 5, 95 ], [ 5, 95 ] ] | |
| > 95 [5, 95, 5] | |
| > 5, 95 [95, 5] |
| #!/bin/sh | |
| HOST = 'myhost' | |
| EMAIL=`git config user.email` | |
| if [[ ${EMAIL} == '' ]]; then | |
| printf "ERROR: You need to set up your email.\n\n" | |
| exit 1 | |
| fi | |
| git_remote=`git branch -vv | perl -n -e'/^\*.*\[(.*)\/.*\].*/ && print $1'` |
| class TestFooAddRequest(unittest.TestCase): | |
| def setUp(self, environ=None): | |
| self.wsgi_app = self.config.make_wsgi_app() | |
| from webtest import TestApp | |
| self.test_app = TestApp( | |
| self.wsgi_app | |
| ) | |
| def _makeRequest(self, environ=None): | |
| if environ is None: |
| class FooRequest(WebRequest): | |
| def foo(self): | |
| return self.environ['foo.bar'] |
| /* | |
| Chrome Developer Tools - Monokai Color Theme | |
| Author: Béres Máté Csaba / bjmatt.com / @bjmatt / beres.mate@bjmatt.com | |
| ----------------------------------------------------------------------------------------------------------- | |
| Installation: | |
| 1. Find your Chrome's user stylesheet's directory, for example in win7: | |
| "c:\Users\***YOUR USERNAME***\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\" |