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 | |
#For the details see the article: https://iszlai.github.io/post/the_dev_cli/ | |
#Set up a few working folders | |
LOGDIR="/var/tmp/dev-logs/" | |
REPOS="/Users/someUser/work/repos/" | |
#Always check pre-reqs | |
function check_repo { |
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 | |
#Define the color yellow for later use | |
YELLOW='\033[0;33m' | |
#Define text reset | |
NC='\033[0m' | |
pathToRepos=~/work/repos |
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 io.prometheus.client.*; | |
import io.prometheus.client.exporter.common.TextFormat; | |
import io.prometheus.client.hotspot.DefaultExports; | |
import spark.Request; | |
import spark.Response; | |
import java.io.IOException; | |
import java.io.StringWriter; | |
import java.util.Random; |
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
Hey All, | |
I am P.B.Surya.Subhash, a 17 Year coder,hacker and a student. | |
Recently I happen to see so many posts regarding this " Google XSS Challenge " and i was fortunate enough to complete them.. | |
These are the solutions for the challenges ;) | |
############################################################################## | |
Level 1: Hello, world of XSS | |
https://xss-game.appspot.com/level1/frame | |
query=<script>alert('xss')</script> |
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
# | |
# Himawari-8 Downloader | |
# | |
# | |
# | |
# This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image, | |
# converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background. | |
# | |
# http://himawari8.nict.go.jp/himawari8-image.htm | |
# |
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
defmodule Benchmark do | |
def measure(function) do | |
elapsed = function | |
|> :timer.tc | |
|> elem(0) | |
|> Kernel./(1_000_000) | |
IO.puts "Elapsed = #{elapsed}s" | |
end | |
end |
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
/** | |
* Here's a turing machine that fits into a tweet with an example program. | |
* Original tweet: https://twitter.com/mrrrgn/status/630419814666780673 | |
* Gif: http://i.imgur.com/4t31zA2.gif | |
* Turing machines: https://www.youtube.com/watch?v=dNRDvLACg5Q | |
* | |
* Think this is neat? Consider following me for more computer silliness: | |
* twitter.com/mrrrgn or rss my blog linuxpoetry.com | |
**/ |
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
object Category { | |
//Implement, as best as you can, the identity function in your favorite language | |
// (or the second favorite, if your favorite language happens to be Haskell). | |
def id[A]( a:A ):A=a; //> id: [A](a: A)A | |
//Implement the composition function in your favorite language. |
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
namespace Sagas | |
{ | |
using System; | |
using System.Collections.Generic; | |
class Program | |
{ | |
static ActivityHost[] processes; |
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
object Dot { | |
def main(args: Array[String]) { | |
println("Imperative") | |
val startTime = System.nanoTime() | |
testImperative() | |
val endTime = System.nanoTime() | |
println((endTime - startTime) / 1000000 + "\n") |
NewerOlder