Soumettre la recherche
Mettre en ligne
kRouter
•
0 j'aime
•
593 vues
Kelp Chen
Suivre
AngularJS router without location.hash. https://github.com/kelp404/kRouter
Lire moins
Lire la suite
Technologie
Formation
Signaler
Partager
Signaler
Partager
1 sur 27
Télécharger maintenant
Télécharger pour lire hors ligne
Recommandé
Php resque
Php resque
Chaitanya Kuber
Background Jobs with Resque
Background Jobs with Resque
homanj
Open Source Saturday - How can I contribute to Ruby on Rails?
Open Source Saturday - How can I contribute to Ruby on Rails?
Pravin Mishra
Background processing with Resque
Background processing with Resque
Nicolas Blanco
Tdc 2013 - Ecossistema Ruby
Tdc 2013 - Ecossistema Ruby
Fabio Akita
Building an API with Django and Django REST Framework
Building an API with Django and Django REST Framework
Christopher Foresman
OWASP Nagpur Meet #3 Android RE
OWASP Nagpur Meet #3 Android RE
OWASP Nagpur
Real-time search in Drupal. Meet Elasticsearch
Real-time search in Drupal. Meet Elasticsearch
Alexei Gorobets
Recommandé
Php resque
Php resque
Chaitanya Kuber
Background Jobs with Resque
Background Jobs with Resque
homanj
Open Source Saturday - How can I contribute to Ruby on Rails?
Open Source Saturday - How can I contribute to Ruby on Rails?
Pravin Mishra
Background processing with Resque
Background processing with Resque
Nicolas Blanco
Tdc 2013 - Ecossistema Ruby
Tdc 2013 - Ecossistema Ruby
Fabio Akita
Building an API with Django and Django REST Framework
Building an API with Django and Django REST Framework
Christopher Foresman
OWASP Nagpur Meet #3 Android RE
OWASP Nagpur Meet #3 Android RE
OWASP Nagpur
Real-time search in Drupal. Meet Elasticsearch
Real-time search in Drupal. Meet Elasticsearch
Alexei Gorobets
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Innovecs
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Fwdays
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Maarten Balliauw
Real-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @Moldcamp
Alexei Gorobets
Drupal and Elasticsearch
Drupal and Elasticsearch
Nikolay Ignatov
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
Srijan Technologies
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
Alvaro Sanchez-Mariscal
Capistrano - automate all the things
Capistrano - automate all the things
John Cleary
Celery for internal API in SOA infrastructure
Celery for internal API in SOA infrastructure
Roman Imankulov
Getting Started with Capistrano
Getting Started with Capistrano
LaunchAny
What's New in v2 - AnsibleFest London 2015
What's New in v2 - AnsibleFest London 2015
jimi-c
Designing net-aws-glacier
Designing net-aws-glacier
Workhorse Computing
Google App Engine With Java And Groovy
Google App Engine With Java And Groovy
Ken Kousen
Web Operations101
Web Operations101
Nell Shamrell-Harrington
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Shengyou Fan
Rust, Redis, and Protobuf - Oh My!
Rust, Redis, and Protobuf - Oh My!
Nell Shamrell-Harrington
Scaling up task processing with Celery
Scaling up task processing with Celery
Nicolas Grasset
Celery with python
Celery with python
Alexandre González Rodríguez
Gohan
Gohan
Nachi Ueno
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Amazon Web Services
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
CalderaLearn
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Paulo Ragonha
Contenu connexe
Tendances
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Innovecs
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Fwdays
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Maarten Balliauw
Real-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @Moldcamp
Alexei Gorobets
Drupal and Elasticsearch
Drupal and Elasticsearch
Nikolay Ignatov
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
Srijan Technologies
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
Alvaro Sanchez-Mariscal
Capistrano - automate all the things
Capistrano - automate all the things
John Cleary
Celery for internal API in SOA infrastructure
Celery for internal API in SOA infrastructure
Roman Imankulov
Getting Started with Capistrano
Getting Started with Capistrano
LaunchAny
What's New in v2 - AnsibleFest London 2015
What's New in v2 - AnsibleFest London 2015
jimi-c
Designing net-aws-glacier
Designing net-aws-glacier
Workhorse Computing
Google App Engine With Java And Groovy
Google App Engine With Java And Groovy
Ken Kousen
Web Operations101
Web Operations101
Nell Shamrell-Harrington
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Shengyou Fan
Rust, Redis, and Protobuf - Oh My!
Rust, Redis, and Protobuf - Oh My!
Nell Shamrell-Harrington
Scaling up task processing with Celery
Scaling up task processing with Celery
Nicolas Grasset
Celery with python
Celery with python
Alexandre González Rodríguez
Gohan
Gohan
Nachi Ueno
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Amazon Web Services
Tendances
(20)
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Reliable Python REST API (by Volodymyr Hotsyk) - Web Back-End Tech Hangout - ...
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Maarten Balliauw "Indexing and searching NuGet.org with Azure Functions and S...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Real-time search in Drupal with Elasticsearch @Moldcamp
Real-time search in Drupal with Elasticsearch @Moldcamp
Drupal and Elasticsearch
Drupal and Elasticsearch
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
[Srijan Wednesday Webinar] Easy Performance Wins for Your Rails App
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
Capistrano - automate all the things
Capistrano - automate all the things
Celery for internal API in SOA infrastructure
Celery for internal API in SOA infrastructure
Getting Started with Capistrano
Getting Started with Capistrano
What's New in v2 - AnsibleFest London 2015
What's New in v2 - AnsibleFest London 2015
Designing net-aws-glacier
Designing net-aws-glacier
Google App Engine With Java And Groovy
Google App Engine With Java And Groovy
Web Operations101
Web Operations101
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Rust, Redis, and Protobuf - Oh My!
Rust, Redis, and Protobuf - Oh My!
Scaling up task processing with Celery
Scaling up task processing with Celery
Celery with python
Celery with python
Gohan
Gohan
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
(APP202) Deploy, Manage, and Scale Your Apps with AWS OpsWorks and AWS Elasti...
Similaire à kRouter
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
CalderaLearn
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Paulo Ragonha
Ruby/Rails
Ruby/Rails
rstankov
CakePHP
CakePHP
Walther Lalk
SproutCore and the Future of Web Apps
SproutCore and the Future of Web Apps
Mike Subelsky
Managing GraphQL servers with AWS Fargate & Prisma Cloud
Managing GraphQL servers with AWS Fargate & Prisma Cloud
Nikolas Burk
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Tatsuhiko Miyagawa
Full Stack Scala
Full Stack Scala
Ramnivas Laddad
[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development
Adam Tomat
Fast Web Applications Development with Ruby on Rails on Oracle
Fast Web Applications Development with Ruby on Rails on Oracle
Raimonds Simanovskis
Full stack development with node and NoSQL - All Things Open - October 2017
Full stack development with node and NoSQL - All Things Open - October 2017
Matthew Groves
Full Stack Development with Node.js and NoSQL
Full Stack Development with Node.js and NoSQL
All Things Open
Going crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHP
Mariano Iglesias
REST API に疲れたあなたへ贈る GraphQL 入門
REST API に疲れたあなたへ贈る GraphQL 入門
Keisuke Tsukagoshi
Advanced Technology for Web Application Design
Advanced Technology for Web Application Design
Bryce Kerley
Everything-as-code – Polyglotte Entwicklung in der Praxis
Everything-as-code – Polyglotte Entwicklung in der Praxis
QAware GmbH
Polyglot Adventures for the Modern Java Developer #javaone2017
Polyglot Adventures for the Modern Java Developer #javaone2017
Mario-Leander Reimer
Polyglot Adventures for the Modern Java Developer
Polyglot Adventures for the Modern Java Developer
QAware GmbH
huhu
huhu
Dung Trương
Java Libraries You Can’t Afford to Miss
Java Libraries You Can’t Afford to Miss
Andres Almiray
Similaire à kRouter
(20)
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Ruby/Rails
Ruby/Rails
CakePHP
CakePHP
SproutCore and the Future of Web Apps
SproutCore and the Future of Web Apps
Managing GraphQL servers with AWS Fargate & Prisma Cloud
Managing GraphQL servers with AWS Fargate & Prisma Cloud
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Full Stack Scala
Full Stack Scala
[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development
Fast Web Applications Development with Ruby on Rails on Oracle
Fast Web Applications Development with Ruby on Rails on Oracle
Full stack development with node and NoSQL - All Things Open - October 2017
Full stack development with node and NoSQL - All Things Open - October 2017
Full Stack Development with Node.js and NoSQL
Full Stack Development with Node.js and NoSQL
Going crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHP
REST API に疲れたあなたへ贈る GraphQL 入門
REST API に疲れたあなたへ贈る GraphQL 入門
Advanced Technology for Web Application Design
Advanced Technology for Web Application Design
Everything-as-code – Polyglotte Entwicklung in der Praxis
Everything-as-code – Polyglotte Entwicklung in der Praxis
Polyglot Adventures for the Modern Java Developer #javaone2017
Polyglot Adventures for the Modern Java Developer #javaone2017
Polyglot Adventures for the Modern Java Developer
Polyglot Adventures for the Modern Java Developer
huhu
huhu
Java Libraries You Can’t Afford to Miss
Java Libraries You Can’t Afford to Miss
Dernier
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Fwdays
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
BkGupta21
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
LoriGlavin3
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
MounikaPolabathina
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
LoriGlavin3
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Dilum Bandara
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Addepto
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Precisely
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
LoriGlavin3
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
mohitsingh558521
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
LoriGlavin3
Dernier
(20)
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
kRouter
1.
kRouter https:/ /github.com/kelp404/kRouter
2.
Kelp github/kelp404! iOS App Developer! Front-end
Developer! Objective-C, CoffeeScript, Python
3.
kRouter Reason! CoffeeScript! kRouter! Unit Test! Conclusion
4.
kRouter SEO! location.hash `#`
5.
CoffeeScript
6.
CoffeeScript
7.
JavaScript https:/ /github.com/madrobby/semicolon.js
8.
CoffeeScript
9.
JavaScript } } } }
10.
CoffeeScript
11.
JavaScript return { id: 1002
, name: ‘Kelp’ , email: ‘kelp@phate.org’ };
12.
CoffeeScript id: 1002 name: ‘Kelp’ email:
‘kelp@phate.org’
13.
JavaScript function (members, name)
{ var result = []; for (var index = 0; index < members.length; index++) { if (members[index].name == name) { result.push(members[index]); } } return result; }
14.
CoffeeScript (members, name) -> x
for x in members when x.name is name
15.
JavaScript $(function () { $(document).on(‘click’,
‘#link’, function () { var s = $(‘#text’).text(); $(this).html(‘Hello ‘ + s + ‘!!’); }); });
16.
CoffeeScript $ -> $(document).on ‘click’,
‘#link’, -> s = $(‘#text’).text() $(@).html “Hello #{s}!!”
17.
JavaScript angular.module(‘app’, []) .controller(‘HomeController’, function
($scope) { $scope.text = ‘hello’; });
18.
CoffeeScript a = angular.module
‘app’, [] a.controller ‘HomeController’, ($scope) -> $scope.text = ‘hello’
19.
CoffeeScript npm install -g
coffee-script
20.
kRouter Routes! history.pushState()! window.onpopstate
21.
kRouter common.coffee! directive.coffee! module.coffee! provider.coffee
22.
common.coffee getUri: (href=location.href) ->! matchRoute:
(url, routes) ->! parseQueryString: (queryString) ->
23.
directive.coffee kr-view! kr-go
24.
module.coffee angular.module 'kRouter', [ 'kRouter.provider',
'kRouter.directive' ]
25.
provider.coffee $kRouterProvider.register = (name,
args={}) ->! routers: []! state: current: {} params: {}! go: (href, push=true) ->
26.
Unit Test Travis CI! karma! jasmine
27.
Conclusion npm install -g
coffee-script! git clone https:/ /github.com/kelp404/kRouter.git cd kRouter git submodule update --init
Télécharger maintenant