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
npm update --depth 10 caniuse-lite browserslist |
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
height: 950 | |
border: no |
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 https://stackoverflow.com/questions/24784302/wrapping-text-in-d3?lq=1 | |
var wrap = function(text, width) { | |
text.each(function() { | |
var text = d3.select(this), | |
words = text | |
.text() | |
.split(/\s+/) | |
.reverse(), | |
word, | |
line = [], |
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
function sendFormByEmail(e) | |
{ | |
// Remember to replace this email address with your own email address | |
var email = "email@domain.##"; | |
var s = SpreadsheetApp.getActiveSheet(); | |
var headers = s.getRange(1,1,1,s.getLastColumn()).getValues()[0]; | |
var htmlBody = ''; | |
var name = e.namedValues[headers[1]].toString(); | |
var replyTo = e.namedValues[headers[2]].toString(); |
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
import numpy as np | |
# Assume that we have a dataframe df which is an adjacency matrix | |
def find_edges(df): | |
"""Finds the edges in the square adjacency matrix, using | |
vectorized operations. Returns a list of pairs of tuples | |
that represent the edges.""" | |
values = df.values # Adjacency matrix of 0's and 1's | |
n_rows, n_columns = values.shape |
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 echo views_embed_view('view-machine-name', $display_id = 'view-id'); ?> |
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
DELETE FROM `node_revisions` WHERE node_revisions.vid NOT IN (SELECT node.vid FROM `node` ); |
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
p:first-letter{ | |
display:block; | |
margin:5px 0 0 5px; | |
float:left; | |
color:#FF3366; | |
font-size:60px; | |
font-family:Georgia; | |
} |
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
html { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} |
NewerOlder