Skip to content

Instantly share code, notes, and snippets.

View selynna's full-sized avatar
🥑
guac is good

Selynna Sun selynna

🥑
guac is good
View GitHub Profile
@selynna
selynna / fb issues
Created July 2, 2015 18:53
Firebase issues
//Delete an existing task
var deleteTask = function() {
debugger
console.log("Delete task...");
var listItem = this.parentNode;
var ul = listItem.parentNode;
//delete from firebase
fb.once('value', function(snapshot) {
@selynna
selynna / index.js
Created February 21, 2016 04:36
lolololol twilio
const async = require('async');
const request = require('request');
async.waterfall([(callback) => {
request.post({
url: 'https://mhacks-hunt-spring-2016.herokuapp.com/hotel',
form: {
token: 'KzE2NTAzOTAzNzA5'
}
}, (err, http_response, body) => {

Keybase proof

I hereby claim:

  • I am selynna on github.
  • I am ssun098 (https://keybase.io/ssun098) on keybase.
  • I have a public key whose fingerprint is 7AF7 74F2 8BE4 CFDE DCE6 EA5E E5BB EDB0 AD86 F11A

To claim this, I am signing this object:

@selynna
selynna / index.html
Last active December 20, 2018 13:02
Clarifai Workflow Demo
<!DOCTYPE html>
<html>
<head>
<title>Clarifai Workflow API Demo</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Muli" />
<script type="text/javascript" src="https://sdk.clarifai.com/js/clarifai-latest.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="index.js"></script>
</head>
@selynna
selynna / .deployment
Last active April 23, 2019 13:40
Django Azure demo
[config]
command = deploy.cmd
# food/views.py
from django.shortcuts import render, redirect
def index(request):
return render(request, 'food/index.html', context=None)
# food/urls.py
from django.conf.urls import url
from django.urls import path
from food import views
urlpatterns = [
path('', views.index, name='index'),
]
# django_azure_demo/urls.py
from django.conf.urls import url, include
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('', include('food.urls')),
path('admin/', admin.site.urls),
]
@selynna
selynna / settings.py
Last active September 21, 2019 23:20
# django_azure_demo/settings.py
"""
Django settings for django_azure_demo project.
Generated by 'django-admin startproject' using Django 1.11.20.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
@if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off
:: ----------------------
:: KUDU Deployment Script
:: Version: 1.0.8
:: ----------------------
:: Prerequisites
:: -------------