This file contains hidden or 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 { | |
import flash.text.TextField; | |
import flash.utils.ByteArray; | |
import flash.display.Sprite; | |
import flash.net.registerClassAlias; | |
public class MultiNestedVectorsSerializationTest extends Sprite { | |
public function FlashTest() { | |
registerClassAlias( "String", String ); | |
registerClassAlias( "XML", XML ); |
This file contains hidden or 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 org.flixel; | |
import nme.Assets; | |
import nme.events.Event; | |
import nme.media.Sound; | |
import nme.media.SoundChannel; | |
import nme.media.SoundTransform; | |
import nme.net.URLRequest; | |
/** |
This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class ListToDictionary { | |
// Dictionary with subsequent letters as keys (A, B, C, etc.). Count should be less than or equal 24 | |
// to get reasonable results. | |
public Dictionary<string, string> ToDictionary(List<string> list) { | |
Dictionary<string, string> dictionary = new Dictionary<string, string>(list.Count); |
This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class LinqListShuffler { | |
public List<string> Shuffle(List<string> list) { | |
Random random = new Random(); | |
return list.OrderBy(x => random.Next()).ToList(); |
This file contains hidden or 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
infix fun String.dupa(dupa:String) = dupa | |
fun main(dupargs:Array<String>) { | |
var dupa = "dupa"; | |
dupa = dupa dupa dupa | |
println("dupa: $dupa") // output: dupa: dupa | |
} |
This file contains hidden or 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 | |
FOLDERS_TO_DELETE=("Library" "Temp" "obj" "Build" "Builds" "Logs") | |
FILES_TO_DELETE=("*.sln" "*.csproj") | |
DRY_RUN=true | |
if [[ "$1" == "--apply" ]]; then | |
DRY_RUN=false | |
fi |
This file contains hidden or 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 | |
FOLDERS_TO_DELETE=("Library" "Temp" "obj" "Build" "Builds" "Logs") | |
FILES_TO_DELETE=("*.sln" "*.csproj") | |
DRY_RUN=true | |
if [[ "$1" == "--apply" ]]; then | |
DRY_RUN=false | |
fi |
OlderNewer