Skip to content

Instantly share code, notes, and snippets.

@michalblaha
michalblaha / vaclav-havel.svg
Created June 7, 2019 06:37
Vaclav Havel se srdcem
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ErikAugust
ErikAugust / spectre.c
Last active July 5, 2024 18:14
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@rashivkp
rashivkp / linkedin-icon-for-jekyll-footer.html
Last active June 21, 2022 06:00
linkedin svg icon for jekyll page footer
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 25, 2024 06:10
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@willcain
willcain / pom.xml
Created March 26, 2012 18:33
Maven project snippet for using jasmine-maven-plugin with Surefire and Jenkins
<!--
Thanks and kudos to:
Justin Searls https://github.com/searls for jasmine-maven-plugin,
Pivotal Labs http://pivotallabs.com/ for Jasmine,
Jenkins CI http://jenkins-ci.org for Jenkins,
Apache Software Foundation http://apache.org/ for Maven
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
@kellyrob99
kellyrob99 / openCsv.groovy
Created December 4, 2011 18:35
OpenCSV in a groovy script to read in a file, filter the content and write out the result
@Grab(group = 'net.sf.opencsv', module = 'opencsv', version = '2.3')
import au.com.bytecode.opencsv.CSVReader
import au.com.bytecode.opencsv.CSVParser
import au.com.bytecode.opencsv.CSVWriter
def TEST_FILE_NAME = 'test.csv'
def TEST_OUTPUT_FILE_NAME = 'testOut.csv'
List<String[]> rows = new CSVReader(new FileReader(new File(TEST_FILE_NAME)), CSVParser.DEFAULT_SEPARATOR, CSVParser.DEFAULT_ESCAPE_CHARACTER, CSVParser.DEFAULT_QUOTE_CHARACTER, 1).readAll()
def rowsOver100 = rows.findAll {it[1].toInteger() > 100}