#Just follow this guide and install needed packages https://www.npmjs.com/package/karma-fixture
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
| //create the data template | |
| DataTemplate cardLayout = new DataTemplate(); | |
| cardLayout.DataType = typeof(CreditCardPayment); | |
| //set up the stack panel | |
| FrameworkElementFactory spFactory = new FrameworkElementFactory(typeof(StackPanel)); | |
| spFactory.Name = "myComboFactory"; | |
| spFactory.SetValue(StackPanel.OrientationProperty, Orientation.Horizontal); | |
| //set up the card holder textblock |
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
| from scipy.stats import exponweib | |
| from scipy.optimize import fmin | |
| import numpy as np | |
| # x is your data array | |
| # returns [shape, scale] | |
| def fitweibull(x): | |
| def optfun(theta): | |
| return -np.sum(np.log(exponweib.pdf(x, 1, theta[0], scale = theta[1], loc = 0))) |
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
| {"1263735095": {"userName": "alex", "comment": "fef", "review:isMajor": true, "userAvatar": "/static/img/default_avatar.png", "user": 2, "date": 1454491076160, "id": 1263735095}, "2281243457": {"userName": "reviewer1", "comment": "Reviewer1", "isMajor": false, "userAvatar": "/static/img/default_avatar.png", "user": 7, "date": 1453463957590, "id": 2281243457}, "2109250291": {"userName": "reader1", "comment": "Reader1", "isMajor": false, "userAvatar": "/static/img/default_avatar.png", "user": 3, "date": 1453463924849, "id": 2109250291}, "1600459977": {"userName": "alex", "comment": "", "review:isMajor": false, "userAvatar": "/static/img/default_avatar.png", "user": 2, "date": 1454491061400, "id": 1600459977}, "3994840298": {"userName": "reader2", "comment": "Reader2", "isMajor": false, "userAvatar": "/static/img/default_avatar.png", "user": 4, "date": 1453463935016, "id": 3994840298}, "1471743182": {"userName": "author1", "comment": "Author1", "isMajor": false, "userAvatar": "/static/img/default_avatar.png", "u |
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
| # encoding: utf-8 | |
| import rdflib | |
| book = rdflib.URIRef(u'urn:isbn:978-3-16-148410-0') | |
| bookType = rdflib.URIRef(u'urn:publishing:schema:book') | |
| authorPredicate = rdflib.URIRef(u'http://purl.org/dc/terms/creator') | |
| joyce = rdflib.URIRef(u'urn:foaf:registered-people:joyce') | |
| kelly = rdflib.URIRef(u'http://twitter.org/nutjob4life') | |
| mattmann = rdflib.URIRef(u'http://people.apache.org/mattmann') |
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
| function parseAdvertisingData(buffer) { | |
| var length, type, data, i = 0, advertisementData = {}; | |
| var bytes = new Uint8Array(buffer); | |
| while (length !== 0) { | |
| length = bytes[i] & 0xFF; | |
| i++; | |
| // decode type constants from https://www.bluetooth.org/en-us/specification/assigned-numbers/generic-access-profile |
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
- nylas/N1 💌 An extensible desktop mail app built on the modern web.
- black-screen/black-screen A terminal emulator for the 21st century.
- shockone/black-screen A terminal emulator for the 21st century.
- ptmt/react-native-macos React Native for macOS
- docker/kitematic Visual Docker Container Management on Mac & Windows
- kitematic/kitematic Visual Docker Container Management on Mac & Windows
- davezuko/wirk-starter Get started with React, Redux, and React-Router!
- TelescopeJS/Telescope 🔭 An open-source social news app built with Meteor & React
- coryhouse/react-slingshot React + Redux starter kit / boile
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.