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
zip | 2015 | 2014 | 2005 | pct_change_2014_2015 | pct_change_2005_2015 | |
---|---|---|---|---|---|---|
70128 | 73 | 74.0 | 88.0 | -1.35135135135 | -17.0454545455 | |
70129 | 75 | 89.0 | 68.0 | -15.7303370787 | 10.2941176471 | |
70126 | 73 | 72.0 | 71.0 | 1.38888888889 | 2.81690140845 | |
70127 | 63 | 69.0 | 71.0 | -8.69565217391 | -11.2676056338 | |
70122 | 121 | 115.0 | 92.0 | 5.21739130435 | 31.5217391304 | |
70124 | 189 | 184.0 | 158.0 | 2.71739130435 | 19.6202531646 | |
70005 | 204 | 193.0 | 168.0 | 5.69948186528 | 21.4285714286 | |
70002 | 126 | 122.0 | 122.0 | 3.27868852459 | 3.27868852459 | |
70006 | 121 | 121.0 | 120.0 | 0.0 | 0.833333333333 |
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
<?php | |
// This example is for testing php with libcurl | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://www.howsmyssl.com/a/check"); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
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
"use strict"; | |
let im = require('imagemagick'); | |
let async = require('async'); | |
let fs = require('fs'); | |
let request = require('request'); | |
let path = require('path'); | |
let os = require('os'); | |
let fetchAndProcess = (task, done) => { |
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
REGION = 'neworleans' | |
BASE_URL = "https://#{REGION}.craigslist.org" | |
parse_listings = lambda do |url| | |
results = JSON.parse Net::HTTP.get(URI(url)) | |
results.first.each do |item| | |
if item.key? 'GeoCluster' | |
parse_listings.call("#{BASE_URL}#{item['url']}") |
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
defmodule RecurlyBot do | |
use Application | |
# See http://elixir-lang.org/docs/stable/elixir/Application.html | |
# for more information on OTP Applications | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
# Define workers and child supervisors to be supervised | |
children = [ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class SqlCanary | |
def self.enable! | |
Thread.current[:sql_canary] = true | |
end | |
def self.disable! | |
Thread.current[:sql_canary] = false | |
end | |
def self.enabled? |
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
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
# Refactoring the [neighborhood annotation script](https://github.com/codefornola/nola-neighborhood-annotation) to | |
# utilize [the nolabase](https://github.com/codefornola/nolabase/) instead of using all the data | |
# and doing the computation locally. | |
# This demonstrates using the nolabase as a dependency to a community run application or tool. | |
# Run it by passing a connection string and an input and output csv file: | |
# ``` | |
# # get 2021 calls for service data as a test |
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
defmodule ExtismElixirHost.PluginServer do | |
use GenServer | |
@impl true | |
def init() do | |
{:ok, nil} | |
end | |
@impl true | |
def handle_call({:new, manifest, wasi}, _from, plugin) do |
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
(module | |
(func | |
(export "add41") | |
(param $n i32) | |
(result i32) | |
i32.const 41 | |
local.get $n | |
i32.add | |
) |