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
workspace_title = "Alice Walter's Team" | |
subjects_data = [ { "title": "Lectus Sit Consulting", "description": "risus" }, { "title": "Sociis Ltd", "description": "at" }, { "title": "Tellus Nunc Lectus LLP", "description": "ridiculus mus. Proin vel nisl. Quisque" }, { "title": "Auctor Nunc Nulla Foundation", "description": "malesuada" }, { "title": "Fermentum Risus At Incorporated", "description": "lacus. Aliquam rutrum lorem" }, { "title": "Tellus Phasellus Foundation", "description": "mauris sagittis placerat. Cras dictum ultricies" }, { "title": "Dictum PC", "description": "at sem molestie sodales. Mauris blandit enim consequat" }, { "title": "Adipiscing Consulting", "description": "malesuada. Integer id magna" }, { "title": "Dignissim Limited", "description": "dapibus quam" }, { "title": "Lacus Etiam Bibendum PC", "description": "ut dolor dapibus gravida. Aliquam tincidunt, nunc ac" }, { "title": "Nunc Mauris Company", "description": "congue, elit sed consequat auctor, nunc nulla vulputate dui," }, { "title |
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
# Close Safari | |
$ sqlite3 $HOME/Library/Safari/WebpageIcons.db | |
# Find the iconID and then copy it | |
sqlite> select iconID from IconInfo where url='https://mysite.com/favicon.ico'; | |
NNNN | |
# Delete the icon datas of this icon | |
sqlite> delete from IconData where iconID=NNNN; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Azendoo Blue Spinner</title> | |
</head> | |
<body> | |
<div class="az-spinner"/> | |
</body> | |
</html> |
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 countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
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 Immutable from 'immutable'; | |
const TaskRecord = Immutable.Record({ | |
id: null, | |
done: false, | |
label: '', | |
createdAt: null, | |
updatedAt: null, | |
}) |
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 Immutable from 'immutable'; | |
const TaskMap = Immutable.OrderedMap; | |
export default TaskMap; |
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 { RECEIVED_ENTITIES, DELETE_TASK, TOGGLE_TASK_DONE } from 'constants/ActionsTypes'; | |
import Task from 'models/Task'; | |
import TaskMap from 'models/TaskMap'; | |
const initialState = new TaskMap(); | |
const mergeEntities = (state, newTasks) => | |
state.merge(newTasks.map((task) => new Task(task))) | |
export default (state = initialState, action) => |
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 React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { toggleTaskDone } from 'actions/tasks'; | |
import TaskMap from 'models/TaskMap'; | |
import TaskListLayout from 'components/Task/List/Layout'; | |
const TaskListContainer = ({ onToggleTaskDone, tasks }) => ( | |
<TaskListLayout> | |
{ tasks.map((task) => |
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 React from 'react'; | |
import Task from 'models/Task'; | |
const TaskListItem = ({ task, onToggleTaskDone }) => ( | |
<div className="task-list-item"> | |
<input | |
type="checkbox" | |
checked={task.isDone()} | |
onChange={onToggleTaskDone} | |
/> |
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 React from 'react'; | |
import { Editor, KeyBindingUtil, getDefaultKeyBinding } from 'draft-js'; | |
import keycode from 'keycode'; | |
import insertCheckbox from 'modifiers/insertCheckbox'; | |
const { hasCommandModifier } = KeyBindingUtil; | |
function customKeyBindingFn(e) { | |
if (hasCommandModifier(e) && e.shiftKey && keycode(e) === 'c') { | |
return 'insert-checkbox'; |
OlderNewer