Sample Ionic code for searching in a UL.
A Pen by Manit Singh Kalsi on CodePen.
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{DOCUMENT_ROOT}/static/%{REQUEST_URI} -f | |
RewriteRule ^(.*)$ /static/$1 [L,QSA] | |
RewriteCond %{DOCUMENT_ROOT}/static/%{REQUEST_URI}/index.html -f | |
RewriteRule ^(.*)$ /static/$1/index.html [L,QSA] | |
RewriteRule ^index\.php$ - [L] |
#Geometry Notes Second Semester | |
*** | |
##Area, Surface Area and Volume | |
###Circumference | |
* Circumference is the linear distance around the outside of a circular object. | |
* C = π • d or π • 2r. |
import time | |
import json | |
import requests | |
from pprint import pprint | |
# Here's what I want running on the server. For now, I'm running it on my local machine. | |
# FIRST, WE NEED AN APP TOKEN | |
appTokenURL = 'https://account.app.net/oauth/access_token' | |
clientID = 'MY_CLIENT_ID' |
async = require 'async' | |
fs = require 'fs' | |
{filter, flatten} = require 'underscore' | |
OBJ_C_EPOCH = 978307200 | |
DROPBOX_DIR = #"<path to your dropbox folder >/Dropbox/Apps/Reporter-App/" | |
fs.readdir DROPBOX_DIR, (err, files) -> | |
throw new err if err? | |
dataFiles = filter files, (filename) -> /.json/.test filename |
import webbrowser | |
import urllib | |
dayone_url = "dayone://post?entry=" | |
feeling_question = "How do you feel today?" | |
achievement_question = "What are you trying to achieve today?" | |
thought_question = "Is there a negative thought or positive on your mind you want to get out?" | |
tag = "#diary" | |
# input |
function parse_message( &$tweet ) { | |
if ( !empty($tweet['entities']) ) { | |
$replace_index = array(); | |
$append = array(); | |
$text = $tweet['text']; | |
foreach ($tweet['entities'] as $area => $items) { | |
$prefix = false; | |
$display = false; | |
switch ( $area ) { | |
case 'hashtags': |
var TreeId = "your_tree_id_here"; | |
var Filename = "output_filename"; | |
var http =require('http'); | |
var fs = require('fs'); | |
var request = require('request'); | |
var exec = require('child_process').exec; | |
var header = fs.readFileSync('parts/header.tex', 'utf8'); | |
var footer = fs.readFileSync('parts/footer.tex', 'utf8'); | |
var replacements = { '\\\\begin\\{center\\}\\\\rule\\{3in\\}\\{0\\.4pt\}\\\\end\\{center\\}': '\\hr', '\\\\section\{([^\}]*)\}\\\\label\{([^\}]*)\}\\n\\n([^\.]*[\\.\\\'\\\'\\?\\!]*)\\s': '\\finishchapter\n\\section{$1}\\label{$2}\n\\setupchapter\n\\newthought{$3} ' }; |
<html ng-app="ionicApp"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title>Search directive example</title> | |
</head> | |
<body> | |
Sample Ionic code for searching in a UL.
A Pen by Manit Singh Kalsi on CodePen.
from flask import Flask, make_response | |
import matplotlib.pyplot as plt | |
import StringIO | |
import numpy as np | |
app = Flask(__name__) | |
@app.route('/plots/<f>') | |
def show_user_profile(f): |