Tokenizer idea 3.0
Just convert it to JSON using regex
Tokenizer idea 3.0
Just convert it to JSON using regex
<?php | |
$email = "[email protected]"; | |
$expectedResult = "ma*****@co***********.com"; | |
$result = obfuscator($email); | |
if ($result == $expectedResult) { | |
echo "You're great and smart".PHP_EOL; | |
exit(0); | |
} else { |
#! /usr/bin/ruby | |
# Really dumb slack bot. Change the contents of the people array, run script. Start | |
# ngrok, create slack app with a "slash command", use URL from ngrok | |
require 'sinatra' | |
def who_first | |
cache = '.wholast' | |
people = [:Name1, :Name2] |
#!/bin/bash | |
clear | |
mkdir -p /tmp/vsc-updates | |
rm -f /tmp/vsc-updates/*.deb | |
local IFS=$'\n' | |
local CURRENT_VERSION=($(code -v)) |
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Update Visual Studio Code", | |
"type": "shell", | |
"command": "wget --user-agent Mozilla --content-disposition -E -c https://go.microsoft.com/fwlink/?LinkID=760868 && mkdir -p /tmp/vsc-updates && mv *.deb /tmp/vsc-updates/ && sudo apt install /tmp/vsc-updates/*.deb", | |
"problemMatcher": [] | |
} | |
] |
// Place your settings in this file to overwrite the default settings | |
{ | |
"files.exclude": { | |
"obj/": true | |
}, | |
"window.nativeTabs": true, | |
"files.trimTrailingWhitespace": true, | |
"editor.renderWhitespace": "all", | |
"workbench.iconTheme": "eq-material-theme-icons-darker", | |
"editor.cursorStyle": "block", |
#!/usr/bin/env ruby | |
# !IMPORTANT | |
# requires evertils-common 0.3.4/0.3.4.1-dev | |
require 'evertils/common' | |
require 'notifaction' | |
require 'date' | |
en = Evertils::Common::Query::Simple.new |
<?php | |
function starburstApplicant() | |
{ | |
$coding_skills = array("awesome", "ninja-like"); | |
$people_skills = array("great", "super-duper"); | |
$should_apply = false; | |
if(in_array("awesome", $coding_skills) && in_array("great", $people_skills)) { | |
$should_apply = true; |
<div><span style="font-size: 18px;">Logs</span></div> | |
<ul> | |
<li>...</li> | |
</ul> | |
<br /> | |
<div><span style="font-size: 18px;">Meta</span></div> | |
<ul> | |
<li>Tasks Completed | |
<ul> | |
<li>...</li> |
#!/usr/bin/ruby | |
require "open-uri" | |
require "nokogiri" | |
NUM_HITS = 50 | |
def _request(url) | |
begin | |
open(url, :read_timeout => 5).read |