Some slides were not posted.
Speaker: Jessica Kerr
| // Given a string, write a function that uses recursion to output a list of all the possible permutations of that string. | |
| // For example, given s='abc' the function should return ['abc', 'acb', 'bac', 'bca', 'cab', 'cba'] | |
| // Note: If a character is repeated, treat each occurence as distinct, | |
| // for example an input of 'xxx' would return a list with 6 "versions" of 'xxx' | |
| const permutations = (string) => { | |
| let output = [] |
| ; (group-by f list): call f on each item in list. The return value becomes a key | |
| ; of the resulting map, whose keys map to the list of items for which f returned | |
| ; that key. | |
| ; (vals map): returns a list of the values of the map. | |
| (defn anagram [words] (vals (group-by sort words))) | |
| (= (anagram ["star" "rats" "car" "arc" "stars"]) | |
| [["star" "rats"] ["car" "arc"] ["stars"]]) ; true |
| // Open chrome://cache/ and paste the following script in the console. Feel free to edit the filter variable | |
| var filter = /cask\.scotch\.io(.)*\.(jpg|jpeg|png|gif)/g; | |
| /*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ | |
| !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);retu |
Some slides were not posted.
Speaker: Jessica Kerr
#まず見るべき
以下のURLは、常に更新されているコンテンツです。
| ----------------- | |
| C | | |
| | | |
| ------------ | | |
| A | | | |
| a | | | |
| | | | |
| b | | |
| ------------ | | |
| B | |
| /** | |
| * Allows extraction of a minified key. Let's the build system minify keys | |
| * without loosing the ability to dynamically use key strings as values | |
| * themselves. Pass in an object with a single key/val pair and it will return | |
| * you the string key of that single record. Suppose you want to grab the | |
| * value for a key 'className' inside of an object. Key/val minification may | |
| * have aliased that key to be 'xa12'. keyOf({className: null}) will return | |
| * 'xa12' in that case. Resolve keys you want to use once at startup time, then | |
| * reuse those resolutions. | |
| */ |
| <?php | |
| function str_extract($string,$before,$after){ | |
| if(!strpos($string, $before))return false; | |
| $start = strpos($string, $before) + strlen($before); | |
| $string = substr($string, $start); | |
| $end = strpos($string, $after); | |
| return substr($string, 0, $end); | |
| } | |
| function strip_breaks($str){ | |
| $str = str_replace(' |
As Apple's Official Doc said:
-viewDidUnloadis deprecated in iOS 6.0. Views are no longer purged under low-memory conditions and so this method is never called.
Meanwhile, it's better to remove all -viewDidUnload implements from projects that the deployment target is iOS 6.0 or later. But removing it one by one is boring, especially you've hundreds of controllers & several projects.
So, is there any script or command can do this batch job?