Skip to content

Instantly share code, notes, and snippets.

@lomza
lomza / DirectorsListFragment.kt
Created Jun 1, 2020
DirectorsListFragment.kt
View DirectorsListFragment.kt
fun exportDirectorsToCSVFile(csvFile: File) {
csvWriter().open(csvFile, append = false) {
// Header
writeRow(listOf("[id]", "[${Director.TABLE_NAME}]"))
directorsList.forEachIndexed { index, director ->
writeRow(listOf(index, director.fullName))
}
}
}
@kavyak28
kavyak28 / 719
Created Jun 1, 2020
Opponent left dialog_719
View 719
06-01 17:43:55.342 19310 19361 I Unity : SkipBoGame.cs onValidBuildPileDrop BuildPileStackOne count 0 : => member name: onValidBuildPileDrop : => source line number: 194
06-01 17:43:55.342 19310 19361 I Unity :
06-01 17:43:55.342 19310 19361 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
06-01 17:43:55.342 19310 19361 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
06-01 17:43:55.342 19310 19361 I Unity : UnityEngine.Logger:Log(LogType, Object)
06-01 17:43:55.342 19310 19361 I Unity : UnityEngine.Debug:Log(Object)
06-01 17:43:55.342 19310 19361 I Unity : Game:Log(String, LogType, Nullable`1, GameObject, String, Int32) (at H:\Projects\Sathyaraj\SkipBoGameGit\SkipBoGame\Assets\Scripts\Game\Game.cs:483)
06-01 17:43:55.342 19310 19361 I Unity : SkipBo.SkipBoGame:onValidBuildPileDrop(Card, Int32, CardDragSourceType) (at H:\Projects\Sathyaraj\SkipBoGameGit\SkipBoGame\Assets\Scripts\SkipBoGame\SkipBoGame.cs:194)
06-01 17:43:55
View docker-compose.yml
version: "3.5"
services:
##41021
rabbitmq:
image: "rabbitmq:3-management"
hostname: "rabbitmq"
container_name: rabbitmq
environment:
View The battle of Neighborhoods.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View PDFSnapshotComparator.rb
# frozen_string_literal: true
class PDFSnapshotComparator
def initialize(generated)
@generated = generated
end
def same?(expectation)
out1 = Tempfile.new(['', '.png'])
out2 = Tempfile.new(['', '.png'])
@AVyacheslavovna
AVyacheslavovna / Untitled.ipynb
Created Jun 1, 2020
Created on Skills Network Labs
View Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nknskn
nknskn / exec_autorecon.sh
Created Jun 1, 2020
AutoRecon wrapper for OSCP lab
View exec_autorecon.sh
#!/bin/bash
function Usage () {
echo "Usage: $(basename $0) -f <IP list file>"
echo
echo "Depends on : autorecon.py"
echo " If you have not cloned, clone autorecon repository."
echo " git clone https://github.com/Tib3rius/AutoRecon"
exit 1
}
View Lab - Loading and viewing data.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@clrko
clrko / server.js
Created Jun 1, 2020
Quest3_node_server
View server.js
const http = require('http');
const url = require('url');
const port = 8000;
const requestHandler = (request, response) => {
const requestedUrl = request.url
const parsedUrl = url.parse(requestedUrl, true);
const name = parsedUrl.query.name
const city = parsedUrl.query.city
@lomza
lomza / MoviesListFragment.kt
Created Jun 1, 2020
MoviesListFragment.kt
View MoviesListFragment.kt
class MoviesListFragment : Fragment() {
private lateinit var moviesListAdapter: MoviesListAdapter
private lateinit var moviesViewModel: MoviesViewModel
private lateinit var moviesList: List<Movie>
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
initData()
}
You can’t perform that action at this time.