Skip to content

Instantly share code, notes, and snippets.

View Seich's full-sized avatar

David Díaz Seich

View GitHub Profile
'use strict';
function DischargeDestinationController($routeParams, $scope) {
this.query = {
name: '-',
distance: '-',
zipCode: '-'
};
$scope.$watch('???', function() {
def validate_code(self, client_id, code, client, request, *args, **kwargs):
code = AuthCode.query(AuthCode.client == client.key, AuthCode.code == code).get()
if code is not None:
request.scopes = code.scopes
request.user = code.user
return True
return False
def save_bearer_token(self, token, request, *args, **kwargs):
if request.old_token:
request.old_token.delete()
scopes = request.scopes
if type(scopes) is str:
scopes = request.scopes.split()
BearerToken(
def foo(l):
if type(l) is str:
l = l.split()
print(l)

Keybase proof

I hereby claim:

  • I am seich on github.
  • I am seich (https://keybase.io/seich) on keybase.
  • I have a public key whose fingerprint is EE14 B148 9C80 A281 B8AC D3C1 CD2E 9145 28CA 0EC5

To claim this, I am signing this object:

<p> From I-40, take Exit 209 Charlotte Avenue. Turn west, away from downtown.
- Turn left on 23rd Avenue North. TriStar Centennial is located one block south on the right. Free parking is available throughout our campus.</p>
- <p>From I-65, merge onto I-40 West and follow the above directions.</p>
- <p>From I-440, take Exit 1 West End Avenue and travel east. Turn left on 23rd Avenue North. TriStar Centennial is located 3 blocks north on the left.
- Free parking is available throughout our campus.</p>
- <p>Alternate Route: From Broadway/West End Avenue, turn north on 23rd Avenue North. TriStar Centennial is located 3 blocks north on the left. Free
- parking is available throughout our campus.</p>
- <p>See more at: <a target=""_blank"" href=""http://tristarcentennial.com/about/maps-directions/index.dot#sthash.oIBZx3Ko.dpuf"">http://tristarce
;(function(namespace, undefined) {
'use strict';
var i18n = {
'settings': {
'lang': 'en'
},
'l': function(jString, lang) {
return this.localize(jString, lang);
@Seich
Seich / iso-countries.js
Created June 11, 2013 22:03
Array of countries in ISO 3166-1-alpha-2 standard. (Javascript)
var countries = ["Afghanistan", "Åland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua And Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia, Plurinational State Of", "Bonaire, Sint Eustatius And Saba", "Bosnia And Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, The Democratic Republic Of The", "Cook Islands", "Costa Rica", "Côte D'ivoire", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guine
;(function(namespace, undefined) {
'use strict';
var ModelName = can.Model({
findOne : 'GET /getModel'
}, {});
namespace.Models = namespace.Models || {};
namespace.Models.ModelName = ModelName;
}(this));
;(function(namespace, undefined) {
'use strict';
var ControllerName = can.Control({
defaults: {
}
},{
'init': function(element, options) {
var self = this;