Segment script called on analytics.ready()
<script type="text/javascript">
analytics.ready(function() {
analytics.user().anonymousId('80242030-bf79-11e9-a17a-07af333ee672');
});
</script>
<script type="text/javascript"> | |
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t,e){var n=document.createElement("script");n.type="text/javascript";n.async=!0;n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(n,a);analytics._loadOptions=e};analytics.SNIPPET_VERSION="4.1.0"; | |
analytics.load(SEGMENT_KEY); | |
analytic |
Segment script called on analytics.ready()
<script type="text/javascript">
analytics.ready(function() {
analytics.user().anonymousId('80242030-bf79-11e9-a17a-07af333ee672');
});
</script>
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
queryParams: ['filters'], | |
appName:'Ember Twiddle', | |
filters: [], | |
newFilter: '', | |
actions: { |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# Question: | |
# Suppose you have an array of 99 numbers. | |
# The array contains the digits 1 to 100 with one digit missing. | |
# Write four different algorithms to compute the missing number. | |
# Two of these should optimize for low storage and two of these should optimize for fast processing. | |
# (Keep in mind, there are no duplicates and the array is not already sorted.) | |
####################################################### |
var suits = ['Heart', 'Diamond', 'Club', 'Spade']; | |
var value = ['2','3','4','5','6','7','8','9','10','J','Q','K','A']; | |
function Card(num, suit) { | |
this.num = num; | |
this.suit = suit; | |
} | |
function Deck() { | |
this.cards = []; |
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
//------------------------------------------------------------------------------------------------------------------ | |
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work. | |
//------------------------------------------------------------------------------------------------------------------ |
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
</head> |