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 Systematize.Mixfile do | |
use Mix.Project | |
# ... | |
defp deps do | |
[ | |
{:phoenix, "~> 1.3.3"}, | |
{:phoenix_pubsub, "~> 1.0"}, | |
{:phoenix_html, "~> 2.10"}, |
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 Systematize.Mixfile do | |
use Mix.Project | |
# ... | |
defp deps do | |
[ | |
{:phoenix, "~> 1.3.3"}, | |
{:phoenix_pubsub, "~> 1.0"}, | |
{:phoenix_html, "~> 2.10"}, |
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 Test436 do | |
def test do | |
IO.puts("Testing Daylight Savings issue 436") | |
# demonstrate both styles of creating elixir time structs | |
start = ~T[09:00:00] | |
{:ok, stop} = Time.new(12, 0, 0) | |
# will be true when the current time is between 9am and noon in | |
# los angeles and anywhere else in the same timezone, with respect to |
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
sql = "select * from example as ex cross join jsonb_each(ex.data) as dt where value->>'ref' = 'ref_1';" | |
result = JsonbTest.Repo.query!(sql) | |
Enum.map(result.rows, &JsonbTest.Repo.load(Example, {result.columns, &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
from apiclient import discovery | |
from google.auth.transport.urllib3 import AuthorizedHttp | |
def change_owner(spreadsheet_id, owner): | |
''' | |
Use the drive api to change the owner | |
''' | |
drive_service = discovery.build('drive', 'v3') | |
permission = drive_service.permissions().create( |
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
Verifying my Blockstack ID is secured with the address 195fc1q7Q2gL4q5HNnTFPREJAxmMKUjT9r https://explorer.blockstack.org/address/195fc1q7Q2gL4q5HNnTFPREJAxmMKUjT9r |
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
<template> | |
<div id="app"> | |
<table> | |
<tr v-for="week in weeks"> | |
<td v-for="day in week.days"> | |
<div v-show="day.display" class="day"> | |
<div class="day-header"> | |
{{day.display}} | |
</div> | |
<div class="day-events"> |
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
dist | |
├── about.html | |
├── about.js | |
├── index.html | |
└── index.js |
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
├── LICENSE | |
├── package.json | |
├── package-lock.json | |
├── README.md | |
├── src | |
│ ├── components # all vue files | |
│ │ ├── about.vue | |
│ │ ├── index.vue | |
│ │ ├── site_footer.vue | |
│ │ └── site_header.vue |
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
const { join, resolve } = require('path') | |
const webpack = require("webpack"); | |
const glob = require('glob') | |
const HtmlWebpackPlugin = require('html-webpack-plugin') | |
const chunk_names = {} | |
glob.sync('./src/pages/**/app.js').forEach(path => { // build out a chunk for | |
let chunk = path.split("/")[3] // each folder (page) under | |
chunk_names[chunk] = path // the pages directory | |
}) |
NewerOlder