name: teacher description: > Pair-programming tutor mode for junior developers. Activate this skill whenever the user is a junior dev, learning to code, wants to be taught rather than just given answers, asks "how should I..." or "can you help me understand...", or explicitly wants to work through a problem together step-by-step. Use it when someone is onboarding to a codebase, learning a new language or framework, or when you sense they'd benefit more from guided discovery than a complete solution. Also trigger when the user says things like "teach me", "walk me through", "let's
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
| #!/bin/zsh | |
| # capture-window.sh - Screenshot a specific app window on macOS | |
| # | |
| # Usage: capture-window.sh <app-name> [output-file] | |
| # Examples: | |
| # capture-window.sh "Google Chrome" | |
| # capture-window.sh "Google Chrome" ~/Desktop/chrome.png | |
| set -euo pipefail |
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
| package controllers | |
| func getAccountUserAndWorkspaceFromToken(token, workspaceID string) (*models.Account, *models.User, *models.Workspace, error) { | |
| client := core.GetClient() | |
| userID := "" | |
| accountID := "" | |
| if len(token) > 0 { | |
| user, err := client.Utils().ValidateUserJWTToken(token) |
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> | |
| <head> | |
| <title>Simple Cost of Living Calc</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <style> | |
| .questions { | |
| display: flex; | |
| flex-direction: column; |
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 { IRequest, IResponse, RequestMethod, ResponseStatus } from './interfaces/Webhook'; | |
| import { ISetting } from './interfaces/ISetting'; | |
| import { priority, PriorityValue } from './decorators/priority'; | |
| import { IMessage } from './interfaces/IMessage'; | |
| import { IUser } from './interfaces/IUser'; | |
| import { IRoom } from './interfaces/IRoom'; | |
| export class BaseRocketlet { | |
| /** | |
| * Create a new Rocketlet, this is called whenever the server starts up and initiates the Rocketlets. Note, your implementation of this class should call `super(name, id, version)` so we have it. |
I hereby claim:
- I am graywolf336 on github.
- I am graywolf336 (https://keybase.io/graywolf336) on keybase.
- I have a public key whose fingerprint is 779F A2B4 52C9 ED68 B159 AC06 0666 B2C2 4C43 C358
To claim this, I am signing this object:
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 React, { Component } from 'react-native'; | |
| import MapView from 'react-native-maps'; | |
| const { | |
| StyleSheet, | |
| Text, | |
| View, | |
| Dimensions, | |
| TouchableOpacity, | |
| } = React; |
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 limiter = new RateLimiter(5, 15000); | |
| async.each([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], function(i, callback) { | |
| limiter.removeTokens(1, function(err, remainingRequests) { | |
| if(err) { | |
| callback(err); | |
| }else { | |
| console.log(i); | |
| callback(); | |
| } |
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
| app.directive('screenHeight', ['$window', '$log', function($window, $log) { | |
| return { | |
| restrict: 'A', | |
| link: function($scope, element, attrs) { | |
| var changeHeight = function() { | |
| $log.log('Setting the height of', element, 'to', $window.innerHeight); | |
| element.css('height', $window.innerHeight + 'px'); | |
| } | |
| changeHeight(); |
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
| 1. Back up C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\schemas\html\commonHTML5Types.xsd | |
| 2. Delete C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\schemas\html\commonHTML5Types.bin if it exists | |
| 3. Replace it with the file below. | |
| 4. Restart Visual Studio 2012. |
NewerOlder