This file contains 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
When naming variables in code, you can follow these best practices: | |
Descriptive: Choose names that are easy to remember. | |
Concise: Use clear and concise names. | |
A longer name needs to earn its length vs a shorter one by being more informative. | |
Lowercase: Use lowercase letters. | |
Underscores: Use underscores to separate words in a name. | |
No spaces: Avoid using spaces in names. | |
No special characters: Avoid using special characters. | |
No acronyms: Avoid using acronyms and abbreviations. | |
No conflicts: Avoid names that could be confused with keywords or built-in functions. |
This file contains 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.Dynamic; | |
using System.Linq; | |
namespace Shape.Lib | |
{ | |
internal class Utils | |
{ | |
public static Func<int?, dynamic> CreateDynamicColorSelector(Func<dynamic> defaultColorSelector, Func<int?, dynamic> customColorSelector) { dynamic colorSelector(int? v) { if (v == null) { return defaultColorSelector(); } return customColorSelector(v); } return colorSelector; } |
This file contains 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
Sure, here are some creative prompts that you could use to generate images or videos for the Hacker Dojo's motto "RULE# 1: BE EXCELLENT TO EACH OTHER." | |
1. "An intricately designed digital circuit board where the circuits spell out 'RULE# 1: BE EXCELLENT TO EACH OTHER'." | |
2. "A group of diverse people, representing different ethnicities, genders, and ages, all working together on a complex tech project. Superimposed above them are glowing, futuristic letters stating 'RULE# 1: BE EXCELLENT TO EACH OTHER'." | |
3. "A large, welcoming entrance to a modern, industrial-style building labeled 'Hacker Dojo'. Above the entrance, in bold neon lights, shines the phrase 'RULE# 1: BE EXCELLENT TO EACH OTHER'." | |
4. "A pair of hands typing on a keyboard with binary code streaming from it. The binary code transforms into the words 'RULE# 1: BE EXCELLENT TO EACH OTHER'." |
This file contains 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/bash | |
find /input_files ! -regex '/input_files/_exceptions.*' -print | head -n 1000 >/outputs/filelist.txt |
This file contains 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
skilldb % python skilldb.py | |
No embedding_function provided, using default embedding function: DefaultEmbeddingFunction https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 | |
hhh: agent_executor.run... | |
> Entering new AgentExecutor chain... | |
hhh: SkilledAgent... | |
{ | |
"tasks": [ | |
{ |
This file contains 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"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>LLM Laughs: Hilarious Jokes About Large Language Models</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
} |
This file contains 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
// Example of an iterator that works over a sequence of multiple collections. | |
def a = [1, 2] | |
def b = [3, 4] | |
def c = new CollectionSequence(a, b) | |
// The elements of the collections look like one concatenated list. | |
println (c as List) | |
// Mutating the elements of one of the collections changes what we get. |
This file contains 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 SomeBean { | |
private String _memo | |
String foo() { _memo } | |
void foo(String v) { _memo = v } | |
public static void main(String[] args) { | |
SomeBean bean = new SomeBean(); | |
bean.foo = 'bar' | |
println bean.foo |
This file contains 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/bash | |
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
# Install stuff # | |
################# | |
# Install development tools and some misc. necessary packages | |
yum -y groupinstall "Development tools" | |
yum -y install tar python-setuptools # Not included in Minimal group and Base is huge. |
This file contains 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 org.ifcx.snippets; | |
/** | |
* Created by jim on 9/13/14. | |
*/ | |
public class Foo { | |
protected int x; | |
int getX() { return x + 1; } | |
} |