This file contains 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
import pandas as pd | |
import numpy as np | |
import quandl, math, time, datetime | |
import matplotlib.pyplot as plt | |
import pickle | |
from matplotlib import style | |
from sklearn import preprocessing, model_selection, svm | |
from sklearn.linear_model import LinearRegression | |
quandl.ApiConfig.api_key = '' |
This file contains 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
var fs = require('fs'); | |
var http = require('http'); | |
var inbox = require("inbox"); | |
const MailParser = require('mailparser').MailParser; | |
let parser = new MailParser() | |
var journal = { | |
entries: [] | |
}; |
This file contains 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
numberofGuesses = 0 | |
number = random.randint(1,50) | |
name = raw_input("Hello! What is your name? ") | |
print(name + ", I am thinking of a whole number between 1 and 50. Can you guess what it is?") | |
while numberofGuesses < 8: | |
guess = raw_input("Take a guess ") | |
guess = int(guess) |
This file contains 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
//Instagram ID | |
function instagramID() { | |
return fetch('https://api.instagram.com/v1/users/self/?access_token='+queryParams.code) | |
.then((response) => response.json()) | |
.then((responseJson) => { | |
return responseJson.data.id; | |
}) | |
.catch((error) => { | |
console.error(error); | |
}); |
This file contains 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
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
TextInput, | |
View, | |
Linking, | |
Alert | |
} from 'react-native'; |
This file contains 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
import React, { Component } from 'react'; | |
import { View } from 'react-native'; | |
import { Text } from 'react-native-elements'; | |
import Camera from 'react-native-camera'; | |
class Home extends Component { | |
render () { | |
return ( |
This file contains 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 moveHands() { | |
with(new Date()) { | |
h = 30 * (getHours() % 12 + getMinutes() / 60); // 30 degrees hour | |
m = 6 * getMinutes(); // 6 degrees every minute | |
s = 6 * getSeconds(); // 6 degrees every second | |
document.getElementById('seconds').style.cssText = "-webkit-transform:rotate(" + s + "deg);"; // setting the rotate CSS attribute to those degree values | |
document.getElementById('minutes').style.cssText = "-webkit-transform:rotate(" + m + "deg);"; | |
document.getElementById('hours').style.cssText = "-webkit-transform:rotate(" + h + "deg);"; | |
setTimeout(moveHands, 1000); // calling the function every second |
This file contains 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
.center { | |
width: 10px; | |
height: 10px; | |
position: absolute; | |
left: 0; right: 0; bottom: 0; top: 0; | |
margin: auto; | |
background: #000; | |
border-radius: 100%; | |
} |
This file contains 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
.twelve { | |
position: absolute; | |
width: 3px; | |
height: 15px; | |
background: #111111; | |
left: 0; | |
top: 0; | |
right: 0; | |
margin: 0 auto; | |
} |
This file contains 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
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} | |
body { | |
background-color: #000; | |
} |
NewerOlder