Skip to content

Instantly share code, notes, and snippets.

User
-
id PK int
name string
email string UNIQUE
phone_number string NULLABLE
Customer
-
id PK int
32.41470032577897, 32.41963040883462, 32.394775779684, 32.37768249928817, 32.37757788916635, 32.40844205419528, 32.39905096606239, 32.40663645481278, 32.37236223013619, 32.417956776446374, 32.449200419599286, 32.40570793165553, 32.39660446711087, 32.41995596108026, 32.39673590216564, 32.41533994713582, 32.38136302419132, 32.4069385567823, 32.355687491962854, 32.415978471864946, 32.420580031141704, 32.38826831519653, 32.43000042347938, 32.38545088024089, 32.40320390821483, 32.41949277130298, 32.39859828280836, 32.42227804383665, 32.40764402772481, 32.42174465966548, 32.417847217290166, 32.4277299808522, 32.38486498802619, 32.3830417947253, 32.43790400906586, 32.3845313185596, 32.41470296951645, 32.44516911075012, 32.38634258134038, 32.39611149014506, 32.41766687614931, 32.40800276796872, 32.380412180793655, 32.412352992143546, 32.4224146055194, 32.435172937782454, 32.43956118840228, 32.401590737184016, 32.400757855750065, 32.39263075251621, 32.42042487799322, 32.40309394362884, 32.43812595661884, 32.3951118124
@liezl200
liezl200 / NotificationList.js
Created April 5, 2017 10:24
notification list with separate child_added and child_removed (rendering hangs though..)
import React, { Component, PropTypes } from 'react';
import {
ListView,
View,
} from 'react-native';
// Import custom components
const NotificationItem = require('./NotificationItem');
const NotificationModal = require('./NotificationModal');
import React, { Component, PropTypes } from 'react';
import {
ListView,
View,
} from 'react-native';
// Import custom components
const NotificationItem = require('./NotificationItem');
const NotificationModal = require('./NotificationModal');
@liezl200
liezl200 / NotificationList.js
Created April 4, 2017 13:14
Notification List code
import React, { Component, PropTypes } from 'react';
import {
ListView,
View,
} from 'react-native';
// Import custom components
const NotificationItem = require('./NotificationItem');
const NotificationModal = require('./NotificationModal');
const reducer = (state=[], action) => {
if (action.type === 'splitstr') {
return action.payload.split('');
}
return state;
}
const store = Redux.createStore(reducer);
store.getState();
@liezl200
liezl200 / dl.py
Created October 25, 2016 05:48
Download missing photo files
import urllib2
urllist = ['http://pasuship.weebly.com/uploads/8/6/5/6/86560728/dsc-0056-2_orig.jpg',
'http://pasuship.weebly.com/uploads/8/6/5/6/86560728/slack-for-ios-upload_1_orig.jpg',
'http://pasuship.weebly.com/uploads/8/6/5/6/86560728/14202558-1284135198285907-370006575151434573-n_orig.jpg',
'http://pasuship.weebly.com/uploads/8/6/5/6/86560728/jasmineheu_orig.jpg',
'http://pasuship.weebly.com/uploads/8/6/5/6/86560728/photo-oct-17-11-11-30-am_orig.jpeg',
'http://pasuship.weebly.com/uploads/8/6/5/6/86560728/img-7797_orig.jpeg',
'http://pasuship.weebly.com/uploads/8/6/5/6/86560728/img-0039_orig.jpg',
'http://pasuship.weebly.com/uploads/8/6/5/6/86560728/img-7850_orig.jpg',
'http://pasuship.weebly.com/uploads/8/6/5/6/86560728/image_orig.png',
3 WAYs left to take:
ER **
SI **
AII **
Engr 62 -- fall (eng fund)
231A -- spr (req B)
CS 124 -- win (req C)
cs 161 -- win (core)
@liezl200
liezl200 / arrayDuplicates2.java
Last active August 11, 2016 22:23 — forked from anonymous/arrayDuplicates.java
initial array duplicates #2 solution
// initial array duplicates #2 solution
import java.util.*;
public class arrayDuplicates2 {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
ArrayList<String> values = new ArrayList<String>();
String str;
do{
System.out.println("Name?");
str = s.nextLine();
// initial solution (before discussion)
import java.util.*;
public class NumberOrdering {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
ArrayList<Integer> values = new ArrayList<Integer>();
int input;
int a, b, t;
do{
System.out.println("Number?");