This file contains hidden or 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
let notionToken = await env('NOTION_USER_TOKEN') | |
let databaseID = "3859b567fda3464ea5a69d5ccb56274b" | |
let {data} = await post( | |
`https://api.notion.com/v1/databases/${databaseID}/query`, | |
{ | |
"filter": | |
{ | |
"property": "Status", | |
"select": { |
This file contains hidden or 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
let notionToken = await env('NOTION_USER_TOKEN') | |
let databaseID = "3859b567fda3464ea5a69d5ccb56274b" | |
let {data} = await post( | |
`https://api.notion.com/v1/databases/${databaseID}/query`, | |
{ | |
"filter": { | |
"and": [ | |
{ | |
"property": "Status", |
This file contains hidden or 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
let notionToken = await env('NOTION_USER_TOKEN') | |
let databaseID = "3859b567fda3464ea5a69d5ccb56274b" | |
let content = await arg('Enter Task') | |
let {data} = await post( | |
'https://api.notion.com/v1/pages', { | |
"parent": { "database_id": databaseID }, | |
"properties": { | |
"Name": { | |
"title": [ |
This file contains hidden or 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
let notionToken = await env('NOTION_USER_TOKEN') | |
let databaseID = "3859b567fda3464ea5a69d5ccb56274b" | |
let content = await arg('Enter Task') | |
let {data} = await post( | |
'https://api.notion.com/v1/pages', { | |
"parent": { "database_id": databaseID }, | |
"properties": { | |
"Name": { | |
"title": [ |
This file contains hidden or 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
let API_KEY = "[YOURS]" | |
let url_to_shorten = await arg('Enter URL') | |
let {data} = await get(`https://cutt.ly/api/api.php?key=${API_KEY}&short=${url_to_shorten}`) | |
copy(data.url.shortLink) |
This file contains hidden or 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
let {format} = await npm('date-fns') | |
let title = await arg('Name of post') | |
let file_title = title.toLowerCase().replaceAll(' ', '-') | |
let posts_path = '/Users/danielmiller/code/daniel-industries/_posts/' | |
let date = new Date() | |
let date_for_path = format(date, 'yyyy-MM-dd') | |
let date_for_yml = format(date, 'yyyy-MM-dd hh:mm:ss z') |
This file contains hidden or 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
javascript:(function(){var metadata = document.querySelector("#notion-app > div > div.notion-cursor-listener > div.notion-frame > div.notion-scroller.vertical.horizontal > div:nth-child(2)"); if (metadata.style.display == "") {metadata.style.display = "none";} else {metadata.style.display = "";} })(); |
This file contains hidden or 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
/* hide stories */ | |
#ssrb_stories_start + div { | |
display: none; | |
} |
This file contains hidden or 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
* { | |
font-family: Ubuntu !important; | |
} | |
::-webkit-scrollbar { | |
width: 0px; | |
height: 0px; | |
background: transparent; | |
} |
This file contains hidden or 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
public class BlockDropper extends Block | |
{ | |
public BlockDropper() | |
{ | |
super(Material.ROCK); | |
this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS); // the block will appear on the Blocks tab in creative | |
this.setHardness(0.5f); | |
} | |
@SideOnly(Side.CLIENT) |