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
| grep -rn --color=always "Texts to search" . | less -R |
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
| #include <iostream> | |
| class Character { | |
| public: | |
| struct Direction { | |
| static const std::string Front; | |
| static const std::string Back; | |
| static const std::string Left; | |
| static const std::string Right; | |
| }; |
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
| import re | |
| import bpy | |
| porg = re.compile('ORG-*') | |
| for object in bpy.context.object.data.bones: | |
| object.use_deform = False | |
| for object in bpy.context.object.data.bones: | |
| if porg.match(object.name): |
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
| while; do sl; done; |
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
| sudo diskutil unmount /dev/disk1s1 | |
| sudo dd bs=1m if=path/to/disk/image.img of=/dev/rdisk1 |
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
| 'use strict'; | |
| function guid() { | |
| function s4() { | |
| return Math.floor((1 + Math.random()) * 0x10000) | |
| .toString(16) | |
| .substring(1); | |
| } | |
| return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + |
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
| (defun sum-of-list (list) | |
| (defun it (list sum) | |
| (if (/= 0 (length list)) | |
| (it (rest list) (+ sum (first list))) | |
| sum)) | |
| (it list 0)) | |
| (sum-of-list '(1 2 3 4 5 6 7 8 9)) |
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
| (defun fib (count) | |
| (defun fib-it (a b i count) | |
| (format t "~a~%" a) | |
| (if (< i count) | |
| (fib-it b (+ a b) (incf i) count))) | |
| (fib-it 0 1 0 count)) | |
| (fib 100) |
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
| import UIKit | |
| class ViewController: UIViewController { | |
| required init(coder aDecoder: NSCoder) { | |
| super.init(coder: aDecoder) | |
| } | |
| override init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) { |
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
| var topConstraint = NSLayoutConstraint( | |
| item: view, | |
| attribute: .Top, | |
| relatedBy: .Equal, | |
| toItem: subView, | |
| attribute: .Top, | |
| multiplier: 1, | |
| constant: 0) | |
| var leadingConstraint = NSLayoutConstraint( | |
| item: view, |
NewerOlder