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
| NEVER mention that you’re an AI. | |
| Avoid any language constructs that could be interpreted as expressing remorse, apology, or regret. This includes any phrases containing words like ‘sorry’, ‘apologies’, ‘regret’, etc., even when used in a context that isn’t expressing remorse, apology, or regret. | |
| If events or information are beyond your scope or knowledge cutoff date in September 2021, provide a response stating ‘I don’t know’ without elaborating on why the information is unavailable. | |
| Refrain from disclaimers about you not being a professional or expert. | |
| Keep responses unique and free of repetition. | |
| Never suggest seeking information from elsewhere. | |
| Always focus on the key points in my questions to determine my intent. | |
| Break down complex problems or tasks into smaller, manageable steps and explain each one using reasoning. | |
| Provide multiple perspectives or solutions. | |
| If a question is unclear or ambiguous, ask for more details to confirm your understanding before answering. |
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 NUM_PARTICLES = ( ( ROWS = 100 ) * ( COLS = 300 ) ), | |
| THICKNESS = Math.pow( 80, 2 ), | |
| SPACING = 8, | |
| MARGIN = 100, | |
| DRAG = 0.95, | |
| EASE = 0.25, | |
| PARTICLE_SIZE = 5, // Size of each particle | |
| PARTICLE_COLOR = {r: 0, g: 255, b: 0, a: 1}, // Color of each particle | |
| DRAG = 0.95, |
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
| using Castle.MicroKernel.Registration; | |
| using Castle.MicroKernel.SubSystems.Configuration; | |
| using Castle.Windsor; | |
| using MyApp.BusinessLogic.Facades; | |
| namespace MyApp.Web.PresentationLogic.Container | |
| { | |
| public class BusinessLogicInstaller : IWindsorInstaller | |
| { | |
| public void Install(IWindsorContainer container, IConfigurationStore store) |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| /// <summary> | |
| /// Extension methods for the dynamic object. | |
| /// </summary> |
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
| class BackgroundImageView : UIView { | |
| private let bgImage = UIImageView(forAutoLayout: ()) | |
| private var blurView:UIVisualEffectView! | |
| private var vibrancyView:UIVisualEffectView! | |
| private var didSetupConstraints = false | |
| var containerView: UIView? = nil { | |
| willSet(container) { | |
| removeContainerViewFromSuperview() | |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Tilt</title> | |
| </head> | |
| <body style="padding: 50px"> | |
| <div class="js-tilt" style="width: 300px; height: 300px; background-color: burlywood; display: flex; justify-content: center; align-items: center; overflow: hidden"> | |
| <img | |
| src="https://images.unsplash.com/photo-1632993952737-0c2897164db3?ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwyfHx8ZW58MHx8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" |
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 vertical = d3.select(".chart") | |
| .append("div") | |
| .attr("class", "remove") | |
| .style("position", "absolute") | |
| .style("z-index", "19") | |
| .style("width", "1px") | |
| .style("height", "380px") | |
| .style("top", "10px") | |
| .style("bottom", "30px") | |
| .style("left", "0px") |
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
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| self.view.backgroundColor = UIColor.whiteColor() | |
| let screenSize: CGRect = UIScreen.mainScreen().bounds | |
| var bgImage = UIImageView(image: UIImage(named: "login-bg")) | |
| bgImage.center = CGPointMake(self.view.bounds.size.width / 2, self.view.bounds.size.height / 2) | |
| bgImage.transform = CGAffineTransformMakeScale(screenSize.width / 414, screenSize.height / 736) |
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
| using System; | |
| using System.Windows; | |
| using System.Windows.Threading; | |
| namespace WpfApp1 | |
| { | |
| /// <summary> | |
| /// Interaction logic for App.xaml | |
| /// </summary> | |
| public partial class App : Application |
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
| $prs = gh pr list | Select-String -Pattern "\d\d\d" | Select-object -last 10 | |
| ([regex]"\d\d\d").matches($prs) | % { gh pr merge $_.value -m -d } |
NewerOlder