Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
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
/* | |
The following data should be run in the console while viewing the page https://read.amazon.com/ | |
It will export a CSV file called "download" which can (and should) be renamed with a .csv extension | |
modified version of the original script: https://gist.github.com/jkubecki/d61d3e953ed5c8379075b5ddd8a95f22 | |
changes: | |
* adds a column indicating samples (EBSP) | |
* updates the database version | |
* escapes double quotes instead of stripping them | |
*/ |
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
# ignore everything in the root except the "wp-content" directory. | |
/* | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except the themes directories | |
wp-content/* | |
!wp-content/themes/ | |
# ignore all mu-plugins, plugins, and themes | |
# unless explicitly whitelisted at the end of this file |
- Лучший, на мой взгляд, источник - Category theory for programmers by Bartosz Milewski. Seattle, Summer 2016 - видео лекции. Additional material at https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/. Версия в pdf: https://github.com/hmemcpy/milewski-ctfp-pdf
- Теория категорий на JavaScript. Часть 1. Категория множеств и Введение в преобразование моделей
- Теория категорий для программистов, Функторы Седьмая глава из серии статей, указаны ссылки на предыдущие статьи.
- От математики к обобщенному программированию Ориг.название From Mathematics to Generic Programming. Авторы Александр Степанов, Дэниэл Э. Роуз.
- Категория Hask о теории категорий в контексте системы типов язы
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
/* | |
Joseph Weizenbaum's classic ELIZA chat bot in Swift. | |
Based on the IBM PC BASIC program from CREATIVE COMPUTING by Patricia | |
Danielson and Paul Hashfield, and the Java adaptation by Jesper Juul. | |
Run this script from Terminal: | |
$ swift eliza.swift | |
Press Ctrl-C or Ctrl-D to quit. (Or type "shut up".) |
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 UIKit | |
import PlaygroundSupport | |
class MyViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Main view | |
view.backgroundColor = .black |
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
// | |
// KKBCrypt.h | |
// | |
// Created by Kadasiddha Kullolli on 11/12/2015. | |
// Copyright 2015 Kadasiddha Kullolli | |
#import <Foundation/Foundation.h> | |
#import "KKGC.h" // For GC related macros |
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
func combineDateWithTime(date: NSDate, time: NSDate) -> NSDate? { | |
let calendar = NSCalendar.currentCalendar() | |
let dateComponents = calendar.components([.Year, .Month, .Day], fromDate: date) | |
let timeComponents = calendar.components([.Hour, .Minute, .Second], fromDate: time) | |
let mergedComponments = NSDateComponents() | |
mergedComponments.year = dateComponents.year | |
mergedComponments.month = dateComponents.month | |
mergedComponments.day = dateComponents.day |
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
///Returns the input value clamped to the lower and upper limits. | |
func clamp<T: Comparable>(value: T, lower: T, upper: T) -> T { | |
return min(max(value, lower), upper) | |
} | |
//----------------------------------------------- | |
// Example usage | |
let proposedIndex = 6 |
NewerOlder