🏳️⚧️
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
# If you come from bash you might have to change your $PATH | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="~/.oh-my-zsh" | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="dracula" |
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
<?php | |
function featureShell($cmd, $cwd) { | |
$stdout = array(); | |
if (preg_match("/^\s*cd\s*$/", $cmd)) { | |
// pass | |
} elseif (preg_match("/^\s*cd\s+(.+)\s*(2>&1)?$/", $cmd)) { | |
chdir($cwd); | |
preg_match("/^\s*cd\s+([^\s]+)\s*(2>&1)?$/", $cmd, $match); |
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 main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"sync" | |
"time" | |
) |
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 Node: | |
def __init__(self, value): | |
self.value = value | |
self.adjacent = [] | |
def is_santa(self): | |
return self.value == "SAN" | |
def is_you(self): | |
return self.value == "YOU" |
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
def param_accessor(instruction, position): | |
try: | |
if instruction[-2 - position] == "1": | |
return lambda pointer, opcodes: opcodes[pointer+position] | |
except IndexError: | |
pass | |
return lambda pointer, opcodes: opcodes[opcodes[pointer+position]] | |
def op_sum(pointer, opcodes, first_param, second_param): |
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
import asyncio | |
from ipaddress import ip_address | |
from tartiflette import Resolver, create_engine | |
from aiohttp import web | |
from tartiflette_aiohttp import register_graphql_handlers | |
@Resolver("Query.ipAddress") | |
async def resolve_ip_address(parent, args, ctx, info): |
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
github.AuthenticatedUser | |
github.Authorization | |
github.AuthorizationApplication | |
github.Branch | |
github.BranchProtection | |
github.Clones | |
github.Commit | |
github.CommitCombinedStatus | |
github.CommitComment | |
github.CommitStats |
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
{ | |
"pikachu": { | |
"type": "electric", | |
"abilities": ["static", "lightning rod"] | |
}, | |
"eevee": { | |
"type": "normal", | |
"abilities": ["run away", "adaptability", "anticipation"] | |
}, | |
"grimer": { |
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 main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"os" | |
"github.com/gdamore/encoding" | |
) |
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 main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/hex" | |
"fmt" | |
"io" | |
"os" |
NewerOlder