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
| --- | |
| alwaysApply: false | |
| --- | |
| # TDD Workflow Rules | |
| ## Core TDD Principles | |
| - **Always start with failing tests** before writing implementation code | |
| - Follow the Red-Green-Refactor cycle strictly | |
| - Write the minimal code necessary to make tests pass |
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 tv.example; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; | |
| import android.graphics.Point; | |
| import android.graphics.Rect; | |
| import android.graphics.SurfaceTexture; | |
| import android.graphics.YuvImage; | |
| import android.opengl.EGL14; |
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
| // from https://raw.githubusercontent.com/v8/v8/master/src/objects.cc | |
| void SharedFunctionInfo::AddToOptimizedCodeMapInternal( | |
| Handle<SharedFunctionInfo> shared, Handle<Context> native_context, | |
| Handle<HeapObject> code, Handle<LiteralsArray> literals, | |
| BailoutId osr_ast_id) { | |
| Isolate* isolate = shared->GetIsolate(); | |
| if (isolate->serializer_enabled()) return; | |
| DCHECK(*code == isolate->heap()->undefined_value() || | |
| !shared->SearchOptimizedCodeMap(*native_context, osr_ast_id).code); |
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
| $z-elements: 'main' | |
| 'header' | |
| 'overlay-above-header'; | |
| $z-layers: (); | |
| $z-multiplier: 10; | |
| @each $z-element in $z-elements { | |
| $z-index: $z-multiplier * index($z-elements, $z-element); | |
| $z-layers: map-merge($z-layers, ($z-element: $z-index)); |
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
| void readLinesNoDups(String filename) { | |
| File f = FileReader(filename); | |
| Set lines = new HashSet<String>(); | |
| List resultLines = new ArrayList<String>(); | |
| for (String line : f.lines()) { | |
| if (!lines.contains(line)) { | |
| lines.add(line); | |
| resultLines.add(line); | |
| } | |
| } |
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 java.util.LinkedList; | |
| import java.util.ListIterator; | |
| import java.util.Random; | |
| public class Main { | |
| public static void main(String args[]) { | |
| HashTable t = new HashTable(); | |
| t.insert(70000, "Lonely"); | |
| Random r = new Random(); | |
| for (int i = 0; i < 40000 * 97; ++i) { |
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
| public class Main { | |
| public static void main(String args[]) { | |
| Tree<Integer> t = new Tree<Integer>(); | |
| t.insert(20, 20); | |
| t.insert(10, 11); | |
| t.insert(40, 13); | |
| t.insert(30, 13); | |
| t.insert(25, 13); | |
| System.out.println(t); | |
| t.remove(30); |
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 java.lang.IndexOutOfBoundsException; | |
| public class Main { | |
| public static void main(String args[]) { | |
| LinkedList<Integer> l = new LinkedList<Integer>(); | |
| l.add(4); | |
| l.add(0); | |
| l.add(9); | |
| l.add(131, 1); | |
| l.add(12); |
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
| .replace(/(([\s()\.,!?]|^)((<[^>]*>)|[-_])*)\*([^\n]*?[^\s])\*(((<[^>]*>)|[-_])*([()\.,!?]|$|\s))/g, '$1<b>$5</b>$6') | |
| .replace(/(([\s()\.,!?]|^)((<[^>]*>)|[-\*])*)_([^\n]*?[^\s])_(((<[^>]*>)|[-\*])*([()\.,!?]|$|\s))/g, '$1<i>$5</i>$6') | |
| .replace(/(([\s()\.,!?]|^)((<[^>]*>)|[\*_])*)-([^\n]*?[^\s])-(((<[^>]*>)|[\*_])*([()\.,!?]|$|\s))/g, '$1<s>$5</s>$6') |
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
| Section "Screen" | |
| Identifier "Default Screen" | |
| DefaultDepth 24 | |
| EndSection | |
| Section "Module" | |
| Load "glx" | |
| EndSection |
NewerOlder